leap second fixes for 3.5
Subsystems (2)
Linus,
please pull the latest timers-urgent-for-linus git tree from:
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers-urgent-for-linus
It's a rather large series, but well discussed, refined and reviewed. It got a massive testing by John, Prarit and tip.
In theory we could split it into two parts. The first two patches
5baefd6: hrtimer: Update hrtimer base offsets each hrtimer_interrupt
f6c06ab: timekeeping: Provide hrtimer update function
are merily preventing the stuff loops forever issues, which people have observed.
But there is no point in delaying the other 4 commits which achieve full correctness into 3.6 as they are tagged for stable anyway. And I rather prefer to have the full fixes merged in bulk than a "prevent the observable wreckage and deal with the hidden fallout later" approach.
Thanks,
tglx
------------------>
John Stultz (3):
hrtimer: Provide clock_was_set_delayed()
timekeeping: Fix leapsecond triggered load spike issue
hrtimer: Update hrtimer base offsets each hrtimer_interrupt
Thomas Gleixner (3):
timekeeping: Maintain ktime_t based offsets for hrtimers
hrtimers: Move lock held region in hrtimer_interrupt()
timekeeping: Provide hrtimer update function
include/linux/hrtimer.h | 10 ++++++- kernel/hrtimer.c | 53 ++++++++++++++++++++++++++----------- kernel/time/timekeeping.c | 63 +++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 107 insertions(+), 19 deletions(-)
include/linux/hrtimer.h +9 -1
@@ -165,6 +165,7 @@ enum hrtimer_base_type {* @lock: lock protecting the base and associated clock bases * and timers * @active_bases: Bitfield to mark bases with active timers +* @clock_was_set: Indicates that clock was set from irq context. * @expires_next: absolute time of the next event which was scheduled * via clock_set_next_event() * @hres_active: State of high resolution mode
@@ -177,7 +178,8 @@ enum hrtimer_base_type {*/ struct hrtimer_cpu_base {raw_spinlock_t lock; -unsigned long active_bases; +unsigned int active_bases; +unsigned int clock_was_set;#ifdef CONFIG_HIGH_RES_TIMERS ktime_t expires_next;int hres_active;
@@ -286,6 +288,8 @@ extern void hrtimer_peek_ahead_timers(void);# define MONOTONIC_RES_NSEC HIGH_RES_NSEC# define KTIME_MONOTONIC_RES KTIME_HIGH_RES +extern void clock_was_set_delayed (void ); +#else # define MONOTONIC_RES_NSEC LOW_RES_NSEC
@@ -306,6 +310,9 @@ static inline int hrtimer_is_hres_active(struct hrtimer *timer) {return 0 ; } + +static inline void clock_was_set_delayed (void ) { } +#endif extern void clock_was_set (void );
@@ -320,6 +327,7 @@ extern ktime_t ktime_get(void);extern ktime_t ktime_get_real (void );extern ktime_t ktime_get_boottime (void );extern ktime_t ktime_get_monotonic_offset (void ); +extern ktime_t ktime_get_update_offsets (ktime_t *offs_real,ktime_t *offs_boot); DECLARE_PER_CPU(struct tick_device, tick_cpu_device);
kernel/hrtimer.c +37 -16
109 lines not on this page · raw message
kernel/time/timekeeping.c +61 -2
117 lines not on this page · raw message
Quoted 9 lines · Thomas Gleixner
Linus,
please pull the latest timers-urgent-for-linus git tree from:
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.gittimers-urgent-for-linusIt's a rather large series, but well discussed, refined and reviewed. It got a massive testing by John, Prarit and tip.
Quoted 7 lines
In theory we could split it into two parts. The first two patches
5baefd6: hrtimer: Update hrtimer base offsets each
hrtimer_interrupt
f6c06ab: timekeeping: Provide hrtimer update functionare merily preventing the stuff loops forever issues, which people have observed.
I'm a moron. Copied from teh wrong direction. That should be:
f55a6fa: hrtimer: Provide clock_was_set_delayed() 4873fa0: timekeeping: Fix leapsecond triggered load spike issue
That are the two commits which do the basic damage containment.
Gah, I explicitely asked some involved person to look over that mail before I sent it. :(
Grumbling out of a brown paperbag
tglx