函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:arch\x86\kernel\cpu\cpuid-deps.c Create Date:2022-07-27 08:57:01
首页 Copyright©Brick

74
75
76
77
78
79
80
81
82
83
84
85
86
87
static inline void clear_feature(struct cpuinfo_x86 *c, unsigned int feature)
{
    /*
     * Note: This could use the non atomic __*_bit() variants, but the
     * rest of the cpufeature code uses atomics as well, so keep it for
     * consistency. Cleanup all of it separately.
     */
    if (!c) {
        clear_cpu_cap(&boot_cpu_data, feature);
        set_bit(feature, (unsigned long *)cpu_caps_cleared);
    } else {
        clear_bit(feature, (unsigned long *)c->x86_capability);
    }
}