Skip to content

Commit

Permalink
tick: Move skew_tick option into the HIGH_RES_TIMER section
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
KAGA-KOKO committed May 25, 2012
1 parent fc0830f commit 62cf20b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions kernel/time/tick-sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,14 @@ static enum hrtimer_restart tick_sched_timer(struct hrtimer *timer)

static int sched_skew_tick;

static int __init skew_tick(char *str)
{
get_option(&str, &sched_skew_tick);

return 0;
}
early_param("skew_tick", skew_tick);

/**
* tick_setup_sched_timer - setup the tick emulation timer
*/
Expand Down Expand Up @@ -920,11 +928,3 @@ int tick_check_oneshot_change(int allow_nohz)
tick_nohz_switch_to_nohz();
return 0;
}

static int __init skew_tick(char *str)
{
get_option(&str, &sched_skew_tick);

return 0;
}
early_param("skew_tick", skew_tick);

0 comments on commit 62cf20b

Please sign in to comment.