aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorYasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>2007-07-17 08:21:26 -0400
committerTony Luck <tony.luck@intel.com>2007-07-17 12:50:29 -0400
commitc1726d6f1ad2f1d83e5db1e0142756e9255a82b3 (patch)
treeb58a0a3a219865ba9b1ee9844f2561c04500b990 /include
parent40598cbe9c196f1e84dcfef70541c4a80fd996bb (diff)
[IA64] Use per iosapic lock for indirect iosapic register access
Use per-iosapic lock for indirect iosapic register access. It reduces lock contention. Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/asm-ia64/iosapic.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-ia64/iosapic.h b/include/asm-ia64/iosapic.h
index 421cb6b62a7c..09bdc3898df8 100644
--- a/include/asm-ia64/iosapic.h
+++ b/include/asm-ia64/iosapic.h
@@ -53,13 +53,13 @@
53 53
54#define NR_IOSAPICS 256 54#define NR_IOSAPICS 256
55 55
56static inline unsigned int iosapic_read(char __iomem *iosapic, unsigned int reg) 56static inline unsigned int __iosapic_read(char __iomem *iosapic, unsigned int reg)
57{ 57{
58 writel(reg, iosapic + IOSAPIC_REG_SELECT); 58 writel(reg, iosapic + IOSAPIC_REG_SELECT);
59 return readl(iosapic + IOSAPIC_WINDOW); 59 return readl(iosapic + IOSAPIC_WINDOW);
60} 60}
61 61
62static inline void iosapic_write(char __iomem *iosapic, unsigned int reg, u32 val) 62static inline void __iosapic_write(char __iomem *iosapic, unsigned int reg, u32 val)
63{ 63{
64 writel(reg, iosapic + IOSAPIC_REG_SELECT); 64 writel(reg, iosapic + IOSAPIC_REG_SELECT);
65 writel(val, iosapic + IOSAPIC_WINDOW); 65 writel(val, iosapic + IOSAPIC_WINDOW);