Skip to content

Commit 62cf20b

Browse files
committed
tick: Move skew_tick option into the HIGH_RES_TIMER section
commit 5307c95 (tick: Add tick skew boot option) broke the !CONFIG_HIGH_RES_TIMERS build. Move the boot option parsing into the CONFIG_HIGH_RES_TIMERS section. Reported-by: Ingo Molnar <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: Mike Galbraith <[email protected]>
1 parent fc0830f commit 62cf20b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

kernel/time/tick-sched.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,14 @@ static enum hrtimer_restart tick_sched_timer(struct hrtimer *timer)
816816

817817
static int sched_skew_tick;
818818

819+
static int __init skew_tick(char *str)
820+
{
821+
get_option(&str, &sched_skew_tick);
822+
823+
return 0;
824+
}
825+
early_param("skew_tick", skew_tick);
826+
819827
/**
820828
* tick_setup_sched_timer - setup the tick emulation timer
821829
*/
@@ -920,11 +928,3 @@ int tick_check_oneshot_change(int allow_nohz)
920928
tick_nohz_switch_to_nohz();
921929
return 0;
922930
}
923-
924-
static int __init skew_tick(char *str)
925-
{
926-
get_option(&str, &sched_skew_tick);
927-
928-
return 0;
929-
}
930-
early_param("skew_tick", skew_tick);

0 commit comments

Comments
 (0)