Displaying 4 results from an estimated 4 matches for "timekeeper_seq".
2013 Jun 27
1
[PATCH 2/5] time: pass flags instead of multiple bools to timekeeping_update()
...b/kernel/time/timekeeping.c
@@ -26,6 +26,9 @@
#include "tick-internal.h"
#include "ntp_internal.h"
+#define TK_CLEAR_NTP (1 << 0)
+#define TK_MIRROR (1 << 1)
+
static struct timekeeper timekeeper;
static DEFINE_RAW_SPINLOCK(timekeeper_lock);
static seqcount_t timekeeper_seq;
@@ -241,16 +244,16 @@ int pvclock_gtod_unregister_notifier(struct notifier_block *nb)
EXPORT_SYMBOL_GPL(pvclock_gtod_unregister_notifier);
/* must hold timekeeper_lock */
-static void timekeeping_update(struct timekeeper *tk, bool clearntp, bool mirror)
+static void timekeeping_update(struct t...
2013 Jun 19
14
[PATCH 2/4] time: add a notifier chain for when the system time is stepped
...void timekeeping_clock_was_set_delayed(void)
+{
+ tasklet_schedule(&clock_was_set_tasklet);
+}
+
static RAW_NOTIFIER_HEAD(pvclock_gtod_chain);
static void update_pvclock_gtod(struct timekeeper *tk)
@@ -513,8 +532,7 @@ int do_settimeofday(const struct timespec *tv)
write_seqcount_end(&timekeeper_seq);
raw_spin_unlock_irqrestore(&timekeeper_lock, flags);
- /* signal hrtimers about time change */
- clock_was_set();
+ timekeeping_clock_was_set();
return 0;
}
@@ -557,8 +575,7 @@ error: /* even if we error out, we forwarded the time, so call update */
write_seqcount_end(&timekeep...
2013 Dec 11
0
[RFC][PATCH 2/5] timekeeping: Fix potential lost pv notification of time change
...t)
shift--;
}
@@ -1420,7 +1420,7 @@ static void update_wall_time(void)
* Finally, make sure that after the rounding
* xtime_nsec isn''t larger than NSEC_PER_SEC
*/
- action = accumulate_nsecs_to_secs(tk);
+ action |= accumulate_nsecs_to_secs(tk);
write_seqcount_begin(&timekeeper_seq);
/* Update clock->cycle_last with the new value */
--
1.8.3.2
2013 Dec 10
2
[RFC][PATCH 3/3] timekeeping: Fix potential lost pv notification of time change
...t)
shift--;
}
@@ -1422,7 +1422,7 @@ static void update_wall_time(void)
* Finally, make sure that after the rounding
* xtime_nsec isn''t larger than NSEC_PER_SEC
*/
- action = accumulate_nsecs_to_secs(tk);
+ action |= accumulate_nsecs_to_secs(tk);
write_seqcount_begin(&timekeeper_seq);
/* Update clock->cycle_last with the new value */
--
1.8.3.2