Commit 62cf20b32aee4ae889a2eb40fd41c0eab73de970

Authored by Thomas Gleixner
1 parent fc0830fe01

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 <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Mike Galbraith <mgalbraith@suse.de>

Showing 1 changed file with 8 additions and 8 deletions Side-by-side Diff

kernel/time/tick-sched.c
... ... @@ -816,6 +816,14 @@
816 816  
817 817 static int sched_skew_tick;
818 818  
  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 +
819 827 /**
820 828 * tick_setup_sched_timer - setup the tick emulation timer
821 829 */
... ... @@ -920,12 +928,4 @@
920 928 tick_nohz_switch_to_nohz();
921 929 return 0;
922 930 }
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);