[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <12120730321843-git-send-email-dmitri.vorobiev@movial.fi>
Date: Thu, 29 May 2008 17:57:12 +0300
From: Dmitri Vorobiev <dmitri.vorobiev@...ial.fi>
To: linux-mips@...ux-mips.org, ralf@...ux-mips.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 5/5] [MIPS] The tickcount per-cpu variable can become static
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@...ial.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists