* [PATCH] ntp: Make time_adjust static
@ 2010-03-19 3:19 John Stultz
2010-03-19 3:19 ` [PATCH] ntp: Remove tickadj John Stultz
2010-03-23 16:21 ` [tip:timers/core] ntp: Make time_adjust static tip-bot for John Stultz
0 siblings, 2 replies; 4+ messages in thread
From: John Stultz @ 2010-03-19 3:19 UTC (permalink / raw)
To: lkml; +Cc: John Stultz, Thomas Gleixner
Now that no arches are accessing time_adjust directly,
make it static.
CC: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <johnstul@us.ibm.com>
---
include/linux/timex.h | 1 -
kernel/time/ntp.c | 2 +-
2 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/include/linux/timex.h b/include/linux/timex.h
index 7a082b3..e2de51e 100644
--- a/include/linux/timex.h
+++ b/include/linux/timex.h
@@ -238,7 +238,6 @@ extern int tickadj; /* amount of adjustment per tick */
* phase-lock loop variables
*/
extern int time_status; /* clock synchronization status bits */
-extern long time_adjust; /* The amount of adjtime left */
extern void ntp_init(void);
extern void ntp_clear(void);
diff --git a/kernel/time/ntp.c b/kernel/time/ntp.c
index 7c0f180..c631168 100644
--- a/kernel/time/ntp.c
+++ b/kernel/time/ntp.c
@@ -69,7 +69,7 @@ static s64 time_freq;
/* time at last adjustment (secs): */
static long time_reftime;
-long time_adjust;
+static long time_adjust;
/* constant (boot-param configurable) NTP tick adjustment (upscaled) */
static s64 ntp_tick_adj;
--
1.6.0.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] ntp: Remove tickadj
2010-03-19 3:19 [PATCH] ntp: Make time_adjust static John Stultz
@ 2010-03-19 3:19 ` John Stultz
2010-03-23 16:21 ` [tip:timers/core] " tip-bot for John Stultz
2010-03-23 16:21 ` [tip:timers/core] ntp: Make time_adjust static tip-bot for John Stultz
1 sibling, 1 reply; 4+ messages in thread
From: John Stultz @ 2010-03-19 3:19 UTC (permalink / raw)
To: lkml; +Cc: John Stultz, Thomas Gleixner
There are zero users of tickadj. So remove it.
CC: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <johnstul@us.ibm.com>
---
include/linux/timex.h | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/include/linux/timex.h b/include/linux/timex.h
index e2de51e..32d852f 100644
--- a/include/linux/timex.h
+++ b/include/linux/timex.h
@@ -232,7 +232,6 @@ struct timex {
*/
extern unsigned long tick_usec; /* USER_HZ period (usec) */
extern unsigned long tick_nsec; /* ACTHZ period (nsec) */
-extern int tickadj; /* amount of adjustment per tick */
/*
* phase-lock loop variables
@@ -270,9 +269,6 @@ extern void second_overflow(void);
extern void update_ntp_one_tick(void);
extern int do_adjtimex(struct timex *);
-/* Don't use! Compatibility define for existing users. */
-#define tickadj (500/HZ ? : 1)
-
int read_current_timer(unsigned long *timer_val);
/* The clock frequency of the i8253/i8254 PIT */
--
1.6.0.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [tip:timers/core] ntp: Make time_adjust static
2010-03-19 3:19 [PATCH] ntp: Make time_adjust static John Stultz
2010-03-19 3:19 ` [PATCH] ntp: Remove tickadj John Stultz
@ 2010-03-23 16:21 ` tip-bot for John Stultz
1 sibling, 0 replies; 4+ messages in thread
From: tip-bot for John Stultz @ 2010-03-23 16:21 UTC (permalink / raw)
To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, johnstul, tglx
Commit-ID: e1292ba164742e3a236e407148e00300b7196906
Gitweb: http://git.kernel.org/tip/e1292ba164742e3a236e407148e00300b7196906
Author: John Stultz <johnstul@us.ibm.com>
AuthorDate: Thu, 18 Mar 2010 20:19:27 -0700
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitDate: Tue, 23 Mar 2010 17:19:37 +0100
ntp: Make time_adjust static
Now that no arches are accessing time_adjust directly,
make it static.
Signed-off-by: John Stultz <johnstul@us.ibm.com>
LKML-Reference: <1268968769-19209-1-git-send-email-johnstul@us.ibm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
include/linux/timex.h | 1 -
kernel/time/ntp.c | 2 +-
2 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/include/linux/timex.h b/include/linux/timex.h
index 7a082b3..e2de51e 100644
--- a/include/linux/timex.h
+++ b/include/linux/timex.h
@@ -238,7 +238,6 @@ extern int tickadj; /* amount of adjustment per tick */
* phase-lock loop variables
*/
extern int time_status; /* clock synchronization status bits */
-extern long time_adjust; /* The amount of adjtime left */
extern void ntp_init(void);
extern void ntp_clear(void);
diff --git a/kernel/time/ntp.c b/kernel/time/ntp.c
index 7c0f180..c631168 100644
--- a/kernel/time/ntp.c
+++ b/kernel/time/ntp.c
@@ -69,7 +69,7 @@ static s64 time_freq;
/* time at last adjustment (secs): */
static long time_reftime;
-long time_adjust;
+static long time_adjust;
/* constant (boot-param configurable) NTP tick adjustment (upscaled) */
static s64 ntp_tick_adj;
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [tip:timers/core] ntp: Remove tickadj
2010-03-19 3:19 ` [PATCH] ntp: Remove tickadj John Stultz
@ 2010-03-23 16:21 ` tip-bot for John Stultz
0 siblings, 0 replies; 4+ messages in thread
From: tip-bot for John Stultz @ 2010-03-23 16:21 UTC (permalink / raw)
To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, johnstul, tglx
Commit-ID: 3d0205bd1383aa3cac93c209b7c7d03b27930195
Gitweb: http://git.kernel.org/tip/3d0205bd1383aa3cac93c209b7c7d03b27930195
Author: John Stultz <johnstul@us.ibm.com>
AuthorDate: Thu, 18 Mar 2010 20:19:28 -0700
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitDate: Tue, 23 Mar 2010 17:19:38 +0100
ntp: Remove tickadj
There are zero users of tickadj. So remove it.
Signed-off-by: John Stultz <johnstul@us.ibm.com>
LKML-Reference: <1268968769-19209-2-git-send-email-johnstul@us.ibm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
include/linux/timex.h | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/include/linux/timex.h b/include/linux/timex.h
index e2de51e..32d852f 100644
--- a/include/linux/timex.h
+++ b/include/linux/timex.h
@@ -232,7 +232,6 @@ struct timex {
*/
extern unsigned long tick_usec; /* USER_HZ period (usec) */
extern unsigned long tick_nsec; /* ACTHZ period (nsec) */
-extern int tickadj; /* amount of adjustment per tick */
/*
* phase-lock loop variables
@@ -270,9 +269,6 @@ extern void second_overflow(void);
extern void update_ntp_one_tick(void);
extern int do_adjtimex(struct timex *);
-/* Don't use! Compatibility define for existing users. */
-#define tickadj (500/HZ ? : 1)
-
int read_current_timer(unsigned long *timer_val);
/* The clock frequency of the i8253/i8254 PIT */
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-03-23 16:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-19 3:19 [PATCH] ntp: Make time_adjust static John Stultz
2010-03-19 3:19 ` [PATCH] ntp: Remove tickadj John Stultz
2010-03-23 16:21 ` [tip:timers/core] " tip-bot for John Stultz
2010-03-23 16:21 ` [tip:timers/core] ntp: Make time_adjust static tip-bot for John Stultz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox