projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dcdd3d
)
x86: remove mach_apic.h, fix
author
Suresh Siddha
<suresh.b.siddha@intel.com>
Thu, 29 Jan 2009 01:52:57 +0000
(17:52 -0800)
committer
Ingo Molnar
<mingo@elte.hu>
Thu, 29 Jan 2009 13:16:43 +0000
(14:16 +0100)
Use apic_read() instead of open-coded mmio.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/genapic.h
patch
|
blob
|
history
diff --git
a/arch/x86/include/asm/genapic.h
b/arch/x86/include/asm/genapic.h
index ce3655a4948d5b7487621ac354686b497a11f5ea..ccfcd19d5b7d4c5e1174dc836b879807356e9a6e 100644
(file)
--- a/
arch/x86/include/asm/genapic.h
+++ b/
arch/x86/include/asm/genapic.h
@@
-145,7
+145,7
@@
static inline unsigned int read_apic_id(void)
{
unsigned int reg;
- reg =
*(u32 *)(APIC_BASE +
APIC_ID);
+ reg =
apic_read(
APIC_ID);
return apic->get_apic_id(reg);
}