Messages in this thread Patch in this message | | | From | Dmitri Vorobiev <> | Subject | [PATCH 5/5] [MIPS] The tickcount per-cpu variable can become static | Date | Thu, 29 May 2008 17:57:12 +0300 |
| |
In arch/mips/mips-boards/generic/time.c, the `tickcount' per-cpu variable is needlessly defined global, and this patch makes it static.
Noticed by sparse. Tested by booting a Qemu-emulated Malta board up to the shell prompt.
Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.fi> --- arch/mips/mips-boards/generic/time.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/mips/mips-boards/generic/time.c b/arch/mips/mips-boards/generic/time.c index 008fd82..585fb44 100644 --- a/arch/mips/mips-boards/generic/time.c +++ b/arch/mips/mips-boards/generic/time.c @@ -58,7 +58,7 @@ static int mips_cpu_timer_irq; static int mips_cpu_perf_irq; extern int cp0_perfcount_irq; -DEFINE_PER_CPU(unsigned int, tickcount); +static DEFINE_PER_CPU(unsigned int, tickcount); #define tickcount_this_cpu __get_cpu_var(tickcount) static unsigned long ledbitmask; -- 1.4.4.3
| |