i386: allow disabling X86_FEATURE_SEP at boot
In-Reply-To: <[email protected]>
Quoted 7 lines · Andrew Morton
Quoted 4 lines · Chuck Ebbert
Allow the x86 "sep" feature to be disabled at bootup. This forces use of the int80 vsyscall.
Why is there a need to do this?
Mainly for testing or benchmarking the int80 vsyscall code.
Quoted 10 lines
arch/i386/kernel/cpu/common.c EXPORT_PER_CPU_SYMBOL(cpu_16bit_stack); · line 31
Quoted 8 lines
arch/i386/kernel/cpu/common.c +1
-0@@ -27,6 +27,7 @@ EXPORT_PER_CPU_SYMBOL(cpu_16bit_stack);static int cachesize_override__devinitdata =-1 ;static int disable_x86_fxsr__devinitdata =0 ;static int disable_x86_serial_nr__devinitdata =1 ; +static int disable_x86_sep__devinitdata =0 ;hm, I guess lots of things in there should be __cpuinit/__cpuinitdata.
I'll try to do that.
Quoted 2 lines
__devinitis a superset of that, but we're being a little wasteful in the case of CONFIG_HOTPLUG&&!CONFIG_HOTPLUG_CPU.
Signature · 1 line
Chuck