函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:arch\x86\kernel\cpu\transmeta.c Create Date:2022-07-27 08:59:47
首页 Copyright©Brick

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// SPDX-License-Identifier: GPL-2.0
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/sched/clock.h>
#include <linux/mm.h>
#include <asm/cpufeature.h>
#include <asm/msr.h>
#include "cpu.h"
 
static void early_init_transmeta(struct cpuinfo_x86 *c)
{
    u32 xlvl;
 
    /* Transmeta-defined flags: level 0x80860001 */
    xlvl = cpuid_eax(0x80860000);
    if ((xlvl & 0xffff0000) == 0x80860000) {
        if (xlvl >= 0x80860001)
            c->x86_capability[CPUID_8086_0001_EDX] = cpuid_edx(0x80860001);
    }
}