x86_32: use apic_ops at print_local_APIC()
PATCH 1/1 x86_32: use apic_ops at print_local_APIC()
From: Hiroshi Shimamoto <[email protected]>
Use apic_icr_read at print_local_APIC() in io_apic_32.c
Signed-off-by Hiroshi Shimamoto <[email protected]>
Cc Suresh Siddha <[email protected]>
Cc Yinghai Lu <[email protected]>
--- arch/x86/kernel/io_apic_32.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
arch/x86/kernel/io_apic_32.c +4 -4
@@ -1488,6 +1488,7 @@ __apicdebuginit(void) print_APIC_bitfield(int base)__apicdebuginit (void )print_local_APIC (void *dummy) {unsigned int v, ver, maxlvt; +u64 icr;if (apic_verbosity ==APIC_QUIET )return ;
@@ -1538,10 +1539,9 @@ __apicdebuginit(void) print_local_APIC(void *dummy)printk (KERN_DEBUG "... APIC ESR: %08x\n" , v); } - v =apic_read (APIC_ICR ); -printk (KERN_DEBUG "... APIC ICR: %08x\n" , v); - v =apic_read (APIC_ICR2 ); -printk (KERN_DEBUG "... APIC ICR2: %08x\n" , v); + icr =apic_icr_read (); +printk (KERN_DEBUG "... APIC ICR: %08x\n" , icr); +printk (KERN_DEBUG "... APIC ICR2: %08x\n" , icr >>32 ); v =apic_read (APIC_LVTT );printk (KERN_DEBUG "... APIC LVTT: %08x\n" , v);
Signature · 1 line
1.5.4.1
Ingo Molnar
AppliedQuoted 3 lines · Hiroshi Shimamoto
From: Hiroshi Shimamoto <[email protected]>
Use
apic_icr_readatprint_local_APIC()inio_apic_32.c
applied to tip/x86/x2apic, thanks.
Ingo