[-mm patch] kernel/timer.c: make some variables static

From: Adrian Bunk
Date: Fri Feb 03 2006 - 15:57:39 EST


On Fri, Feb 03, 2006 at 12:07:04AM -0800, Andrew Morton wrote:
>...
> Changes since 2.6.15-mm4:
>...
> +time-reduced-ntp-rework-part-2.patch
>...
> Bring back John's time-reqork patches. New, improved, fixed.
>...


This patch makes some needlessly global variables static.

Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

---

kernel/timer.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

--- linux-2.6.16-rc1-mm5-full/kernel/timer.c.old 2006-02-03 20:05:54.000000000 +0100
+++ linux-2.6.16-rc1-mm5-full/kernel/timer.c 2006-02-03 20:07:35.000000000 +0100
@@ -590,12 +590,12 @@
long time_reftime; /* time at last adjustment (s) */
long time_adjust;
long time_next_adjust;
-long time_adjust_step; /* per tick time_adjust step */
+static long time_adjust_step; /* per tick time_adjust step */

-long total_sppm; /* shifted ppm sum of all adjustments */
-long offset_adj_ppm;
-long tick_adj_ppm;
-long singleshot_adj_ppm;
+static long total_sppm; /* shifted ppm sum of all adjustments */
+static long offset_adj_ppm;
+static long tick_adj_ppm;
+static long singleshot_adj_ppm;

#define MAX_SINGLESHOT_ADJ 500 /* (ppm) */
#define SEC_PER_DAY 86400
-
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/