diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2008-01-30 07:30:14 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:30:14 -0500 |
commit | 37e650c7c8a27de533d409b53c29f4135dcc7af6 (patch) | |
tree | 7cb7a2d5410288becf4d16770cdb92e763d7a89e /arch/x86/kernel/apic_64.c | |
parent | cff90dbfe41f2c8eabe2d0a7e379829f4a9980af (diff) |
x86: rename get_maxlvt to lapic_get_maxlvt
Use the same name for the 32 and 64 bit variant.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/apic_64.c')
-rw-r--r-- | arch/x86/kernel/apic_64.c | 12 |
1 files changed, 6 insertions, 6 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 | ||
163 | int get_maxlvt(void) | 163 | int 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); |