diff options
author | Adrian Bunk <bunk@kernel.org> | 2008-01-30 07:30:31 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:30:31 -0500 |
commit | ed65260bb814a5c600a4e883f6bda73e287f5dec (patch) | |
tree | 1d9b2d117a4b7cdf14527abd732ce06bbee9f91c /arch | |
parent | 867ab545668385b903f9379019000383675c49b3 (diff) |
x86: pci-calgary_64.c: make a variable static
"debugging" is a horrible name for a global variable - thankfully it can
become static.
Also put it out of __read_mostly so that gcc no longer has to emit it
at all.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/pci-calgary_64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/pci-calgary_64.c b/arch/x86/kernel/pci-calgary_64.c index 6bf1f716909d..21d7e0f8610c 100644 --- a/arch/x86/kernel/pci-calgary_64.c +++ b/arch/x86/kernel/pci-calgary_64.c | |||
@@ -183,7 +183,7 @@ static struct calgary_bus_info bus_info[MAX_PHB_BUS_NUM] = { { NULL, 0, 0 }, }; | |||
183 | 183 | ||
184 | /* enable this to stress test the chip's TCE cache */ | 184 | /* enable this to stress test the chip's TCE cache */ |
185 | #ifdef CONFIG_IOMMU_DEBUG | 185 | #ifdef CONFIG_IOMMU_DEBUG |
186 | int debugging __read_mostly = 1; | 186 | static int debugging = 1; |
187 | 187 | ||
188 | static inline unsigned long verify_bit_range(unsigned long* bitmap, | 188 | static inline unsigned long verify_bit_range(unsigned long* bitmap, |
189 | int expected, unsigned long start, unsigned long end) | 189 | int expected, unsigned long start, unsigned long end) |
@@ -202,7 +202,7 @@ static inline unsigned long verify_bit_range(unsigned long* bitmap, | |||
202 | return ~0UL; | 202 | return ~0UL; |
203 | } | 203 | } |
204 | #else /* debugging is disabled */ | 204 | #else /* debugging is disabled */ |
205 | int debugging __read_mostly = 0; | 205 | static int debugging; |
206 | 206 | ||
207 | static inline unsigned long verify_bit_range(unsigned long* bitmap, | 207 | static inline unsigned long verify_bit_range(unsigned long* bitmap, |
208 | int expected, unsigned long start, unsigned long end) | 208 | int expected, unsigned long start, unsigned long end) |