aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/apic_64.c12
-rw-r--r--arch/x86/kernel/io_apic_64.c2
-rw-r--r--arch/x86/kernel/smpboot_64.c2
-rw-r--r--include/asm-x86/apic_64.h2
4 files changed, 9 insertions, 9 deletions
diff --git a/arch/x86/kernel/apic_64.c b/arch/x86/kernel/apic_64.c
index fa6cdee6d303..dfeda91fa80c 100644
--- a/arch/x86/kernel/apic_64.c
+++ b/arch/x86/kernel/apic_64.c
@@ -160,7 +160,7 @@ void enable_NMI_through_LVT0 (void * dummy)
160 apic_write(APIC_LVT0, v); 160 apic_write(APIC_LVT0, v);
161} 161}
162 162
163int get_maxlvt(void) 163int lapic_get_maxlvt(void)
164{ 164{
165 unsigned int v, maxlvt; 165 unsigned int v, maxlvt;
166 166
@@ -194,7 +194,7 @@ void clear_local_APIC(void)
194 int maxlvt; 194 int maxlvt;
195 unsigned int v; 195 unsigned int v;
196 196
197 maxlvt = get_maxlvt(); 197 maxlvt = lapic_get_maxlvt();
198 198
199 /* 199 /*
200 * Masking an LVT entry can trigger a local APIC error 200 * Masking an LVT entry can trigger a local APIC error
@@ -333,7 +333,7 @@ int __init verify_local_APIC(void)
333 reg1 = GET_APIC_VERSION(reg0); 333 reg1 = GET_APIC_VERSION(reg0);
334 if (reg1 == 0x00 || reg1 == 0xff) 334 if (reg1 == 0x00 || reg1 == 0xff)
335 return 0; 335 return 0;
336 reg1 = get_maxlvt(); 336 reg1 = lapic_get_maxlvt();
337 if (reg1 < 0x02 || reg1 == 0xff) 337 if (reg1 < 0x02 || reg1 == 0xff)
338 return 0; 338 return 0;
339 339
@@ -519,7 +519,7 @@ void __cpuinit setup_local_APIC (void)
519 519
520 { 520 {
521 unsigned oldvalue; 521 unsigned oldvalue;
522 maxlvt = get_maxlvt(); 522 maxlvt = lapic_get_maxlvt();
523 oldvalue = apic_read(APIC_ESR); 523 oldvalue = apic_read(APIC_ESR);
524 value = ERROR_APIC_VECTOR; // enables sending errors 524 value = ERROR_APIC_VECTOR; // enables sending errors
525 apic_write(APIC_LVTERR, value); 525 apic_write(APIC_LVTERR, value);
@@ -571,7 +571,7 @@ static int lapic_suspend(struct sys_device *dev, pm_message_t state)
571 if (!apic_pm_state.active) 571 if (!apic_pm_state.active)
572 return 0; 572 return 0;
573 573
574 maxlvt = get_maxlvt(); 574 maxlvt = lapic_get_maxlvt();
575 575
576 apic_pm_state.apic_id = apic_read(APIC_ID); 576 apic_pm_state.apic_id = apic_read(APIC_ID);
577 apic_pm_state.apic_taskpri = apic_read(APIC_TASKPRI); 577 apic_pm_state.apic_taskpri = apic_read(APIC_TASKPRI);
@@ -605,7 +605,7 @@ static int lapic_resume(struct sys_device *dev)
605 if (!apic_pm_state.active) 605 if (!apic_pm_state.active)
606 return 0; 606 return 0;
607 607
608 maxlvt = get_maxlvt(); 608 maxlvt = lapic_get_maxlvt();
609 609
610 local_irq_save(flags); 610 local_irq_save(flags);
611 rdmsr(MSR_IA32_APICBASE, l, h); 611 rdmsr(MSR_IA32_APICBASE, l, h);
diff --git a/arch/x86/kernel/io_apic_64.c b/arch/x86/kernel/io_apic_64.c
index 23a3ac06a23e..d4f5286101a9 100644
--- a/arch/x86/kernel/io_apic_64.c
+++ b/arch/x86/kernel/io_apic_64.c
@@ -1069,7 +1069,7 @@ void __apicdebuginit print_local_APIC(void * dummy)
1069 v = apic_read(APIC_LVR); 1069 v = apic_read(APIC_LVR);
1070 printk(KERN_INFO "... APIC VERSION: %08x\n", v); 1070 printk(KERN_INFO "... APIC VERSION: %08x\n", v);
1071 ver = GET_APIC_VERSION(v); 1071 ver = GET_APIC_VERSION(v);
1072 maxlvt = get_maxlvt(); 1072 maxlvt = lapic_get_maxlvt();
1073 1073
1074 v = apic_read(APIC_TASKPRI); 1074 v = apic_read(APIC_TASKPRI);
1075 printk(KERN_DEBUG "... APIC TASKPRI: %08x (%02x)\n", v, v & APIC_TPRI_MASK); 1075 printk(KERN_DEBUG "... APIC TASKPRI: %08x (%02x)\n", v, v & APIC_TPRI_MASK);
diff --git a/arch/x86/kernel/smpboot_64.c b/arch/x86/kernel/smpboot_64.c
index aaf4e1291217..8147b7d4db63 100644
--- a/arch/x86/kernel/smpboot_64.c
+++ b/arch/x86/kernel/smpboot_64.c
@@ -466,7 +466,7 @@ static int __cpuinit wakeup_secondary_via_INIT(int phys_apicid, unsigned int sta
466 */ 466 */
467 Dprintk("#startup loops: %d.\n", num_starts); 467 Dprintk("#startup loops: %d.\n", num_starts);
468 468
469 maxlvt = get_maxlvt(); 469 maxlvt = lapic_get_maxlvt();
470 470
471 for (j = 1; j <= num_starts; j++) { 471 for (j = 1; j <= num_starts; j++) {
472 Dprintk("Sending STARTUP #%d.\n",j); 472 Dprintk("Sending STARTUP #%d.\n",j);
diff --git a/include/asm-x86/apic_64.h b/include/asm-x86/apic_64.h
index 9a0ec02a49a1..b5f850f25114 100644
--- a/include/asm-x86/apic_64.h
+++ b/include/asm-x86/apic_64.h
@@ -64,7 +64,7 @@ static inline void ack_APIC_irq(void)
64 apic_write(APIC_EOI, 0); 64 apic_write(APIC_EOI, 0);
65} 65}
66 66
67extern int get_maxlvt(void); 67extern int lapic_get_maxlvt(void);
68extern void clear_local_APIC(void); 68extern void clear_local_APIC(void);
69extern void connect_bsp_APIC(void); 69extern void connect_bsp_APIC(void);
70extern void disconnect_bsp_APIC(int virt_wire_setup); 70extern void disconnect_bsp_APIC(int virt_wire_setup);