Skip to contentSkip to conversation

time: remove no_sync_cmos_clock

PATCH In review Cesar Eduardo Barros 2 participants 2 messages Feb 11, 2012 – Mar 17, 2012 Timekeeping, clocksource core, NTP, alarmtimer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 time: remove no_sync_cmos_clock

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.

---
 include/linux/time.h |    1 -
 kernel/time/ntp.c    |    6 +-----
 2 files changed, 1 insertions(+), 6 deletions(-)
include/linux/time.h +0 -1
index b306178..97734e9 100644
@@ -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;
 
kernel/time/ntp.c +1 -5
index f6117a4..20bff28 100644
@@ -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
Signature · 1 line
1.7.7.6
#1 lore raw
Quoted 5 lines · 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.

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

thanks
-john