lkml.org 
[lkml]   [2015]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 6/8] x86: Enumerate kernel FSGS capability in AT_HWCAP2
> > +++ b/arch/x86/include/uapi/asm/hwcap.h
> > @@ -0,0 +1,7 @@
> > +#ifndef _ASM_HWCAP_H
> > +#define _ASM_HWCAP_H 1
> > +
> > +#define HWCAP2_FSGSBASE (1 << 0) /* Kernel enabled RD/WR FS/GS BASE */
>
> BIT()

We cannot use BIT in uapi headers for obvious reasons.

> > cpumask_var_t cpu_initialized_mask;
> > cpumask_var_t cpu_callout_mask;
> > @@ -958,8 +961,10 @@ static void identify_cpu(struct cpuinfo_x86 *c)
> > numa_add_cpu(smp_processor_id());
> > #endif
> >
> > - if (cpu_has(c, X86_FEATURE_FSGSBASE))
> > + if (cpu_has(c, X86_FEATURE_FSGSBASE)) {
>
> static_cpu_has_safe()

That checks the boot cpu? We want to check the current CPU.

-Andi


--
ak@linux.intel.com -- Speaking for myself only.


\
 
 \ /
  Last update: 2015-04-11 01:21    [W:0.127 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site