public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] time: remove no_sync_cmos_clock
@ 2012-02-11 19:54 Cesar Eduardo Barros
  2012-03-17  0:54 ` John Stultz
  0 siblings, 1 reply; 2+ messages in thread
From: Cesar Eduardo Barros @ 2012-02-11 19:54 UTC (permalink / raw)
  To: linux-kernel
  Cc: John Stultz, Thomas Gleixner, Alok N Kataria, H. Peter Anvin,
	Cesar Eduardo Barros

Commit 9863c90f682fba34cdc26c3437e8c00da6c83fa4 (x86, vmware: Remove
deprecated VMI kernel support) removed the only place which set
no_sync_cmos_clock. Since that commit, this variable is never set.

Signed-off-by: Cesar Eduardo Barros <cesarb@cesarb.net>
---
 include/linux/time.h |    1 -
 kernel/time/ntp.c    |    6 +-----
 2 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/include/linux/time.h b/include/linux/time.h
index b306178..97734e9 100644
--- a/include/linux/time.h
+++ b/include/linux/time.h
@@ -116,7 +116,6 @@ static inline struct timespec timespec_sub(struct timespec lhs,
 extern void read_persistent_clock(struct timespec *ts);
 extern void read_boot_clock(struct timespec *ts);
 extern int update_persistent_clock(struct timespec now);
-extern int no_sync_cmos_clock __read_mostly;
 void timekeeping_init(void);
 extern int timekeeping_suspended;
 
diff --git a/kernel/time/ntp.c b/kernel/time/ntp.c
index f6117a4..20bff28 100644
--- a/kernel/time/ntp.c
+++ b/kernel/time/ntp.c
@@ -444,9 +444,6 @@ void second_overflow(void)
 
 #ifdef CONFIG_GENERIC_CMOS_UPDATE
 
-/* Disable the cmos update - used by virtualization and embedded */
-int no_sync_cmos_clock  __read_mostly;
-
 static void sync_cmos_clock(struct work_struct *work);
 
 static DECLARE_DELAYED_WORK(sync_cmos_work, sync_cmos_clock);
@@ -493,8 +490,7 @@ static void sync_cmos_clock(struct work_struct *work)
 
 static void notify_cmos_timer(void)
 {
-	if (!no_sync_cmos_clock)
-		schedule_delayed_work(&sync_cmos_work, 0);
+	schedule_delayed_work(&sync_cmos_work, 0);
 }
 
 #else
-- 
1.7.7.6


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] time: remove no_sync_cmos_clock
  2012-02-11 19:54 [PATCH] time: remove no_sync_cmos_clock Cesar Eduardo Barros
@ 2012-03-17  0:54 ` John Stultz
  0 siblings, 0 replies; 2+ messages in thread
From: John Stultz @ 2012-03-17  0:54 UTC (permalink / raw)
  To: Cesar Eduardo Barros
  Cc: linux-kernel, Thomas Gleixner, Alok N Kataria, H. Peter Anvin

On 02/11/2012 11:54 AM, Cesar Eduardo Barros wrote:
> Commit 9863c90f682fba34cdc26c3437e8c00da6c83fa4 (x86, vmware: Remove
> deprecated VMI kernel support) removed the only place which set
> no_sync_cmos_clock. Since that commit, this variable is never set.
>
> Signed-off-by: Cesar Eduardo Barros<cesarb@cesarb.net>

Digging through my backlog here.
Sorry for the slow response, just wanted to let you know I've queued this.

thanks
-john


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-17  0:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-11 19:54 [PATCH] time: remove no_sync_cmos_clock Cesar Eduardo Barros
2012-03-17  0:54 ` John Stultz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox