Skip to contentSkip to conversation

Remove unused variable "cpu" from arch/x86/xen/setup.c

PATCH In review Manish Katiyar 2 participants 2 messages May 11, 2008 – May 12, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove unused variable "cpu" from arch/x86/xen/setup.c

Remove unused variable "cpu" from arch/x86/xen/setup.c

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
diff -Nur a/x86/xen/setup.c b/arch/x86/xen/setup.c
@@ -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
***********************************************
#1 lore raw
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