Skip to content

Commit 64d5aea

Browse files
committed
Merge branch 'timers-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'timers-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: timekeeping: Prevent oops when GENERIC_TIME=n
2 parents 3836a03 + ad6759f commit 64d5aea

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎kernel/time/clocksource.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,10 @@ static inline void clocksource_select(void) { }
592592
*/
593593
static int __init clocksource_done_booting(void)
594594
{
595+
mutex_lock(&clocksource_mutex);
596+
curr_clocksource = clocksource_default_clock();
597+
mutex_unlock(&clocksource_mutex);
598+
595599
finished_booting = 1;
596600

597601
/*

0 commit comments

Comments
 (0)