Remove unused variable "cpu" from arch/x86/xen/setup.c
Subsystems (2)
PATCH 1/1 Remove unused variable "cpu" from arch/x86/xen/setup.c
Remove unused variable "cpu" from arch/x86/xen/setup.c
Signed-off-by Manish Katiyar ([email protected])
arch/x86/xen/setup.c 2008-05-11 22:50:35.000000000 +0530 renamed from arch/x86/xen/setup.c 2008-04-26 20:36:15.000000000 +0530 +0 -1
@@ -71,7 +71,6 @@ void xen_enable_sysenter(void) { - int cpu = smp_processor_id(); extern void xen_sysenter_target(void); /* Mask events on entry, even though they get enabled immediately */ static struct callback_register sysenter = {
Signature · 8 lines
Thanks & Regards, ******************************************** Manish Katiyar ( http://mkatiyar.googlepages.com ) 3rd Floor, Fair Winds Block EGL Software Park Off Intermediate Ring Road Bangalore 560071, India ***********************************************
Quoted 3 lines · Manish Katiyar
void
xen_enable_sysenter(void)
{
- int cpu =smp_processor_id();
This variable is used when building for SMP:
Quoted 4 lines
if (!boot_cpu_has(X86_FEATURE_SEP) ||
HYPERVISOR_callback_op(CALLBACKOP_register, &sysenter) != 0) {
clear_cpu_cap(&cpu_data(cpu), X86_FEATURE_SEP); <-----
clear_cpu_cap(&boot_cpu_data, X86_FEATURE_SEP);Rabin