[PATCH 5/5] [MIPS] The tickcount per-cpu variable can become static

From: Dmitri Vorobiev
Date: Thu May 29 2008 - 11:16:28 EST


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@xxxxxxxxx>
---
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/