diff options
Diffstat (limited to 'arch/x86/kernel/cpu/common.c')
| -rw-r--r-- | arch/x86/kernel/cpu/common.c | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index 18857ceb6bce..fca56129ddc7 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c @@ -1512,8 +1512,10 @@ static void identify_cpu(struct cpuinfo_x86 *c)  	setup_umip(c);  	/* Enable FSGSBASE instructions if available. */ -	if (cpu_has(c, X86_FEATURE_FSGSBASE)) +	if (cpu_has(c, X86_FEATURE_FSGSBASE)) {  		cr4_set_bits(X86_CR4_FSGSBASE); +		elf_hwcap2 |= HWCAP2_FSGSBASE; +	}  	/*  	 * The vendor-specific functions might have changed features. | 
