Commit 733ce725 authored by Paul Gortmaker's avatar Paul Gortmaker Committed by Ingo Molnar
Browse files

sched/clock: Add dummy clear_sched_clock_stable() stub function

In commit:


 ("sched/clock: Fix hotplug crash")

the PARISC code gained a call to this function.

However the prototype for it is within a CONFIG_HAVE_UNSTABLE_SCHED_CLOCK=y
 #ifdef/#endif.  That, combined with this:

  arch/parisc/Kconfig:    select HAVE_UNSTABLE_SCHED_CLOCK if SMP

means that PARISC can have it either enabled or disabled, resulting
in the following build fail:

  arch/parisc/kernel/setup.c:180:2: error: implicit declaration of
  function 'clear_sched_clock_stable' [-Werror=implicit-function-declaration]

Add a no-op stub for the non-SMP case to prevent this.
Signed-off-by: default avatarPaul Gortmaker <>
Signed-off-by: default avatarPeter Zijlstra (Intel) <>
Cc: Linus Torvalds <>
Cc: Mike Galbraith <>
Cc: Peter Zijlstra <>
Cc: Thomas Gleixner <>
Fixes: acb04058 ("sched/clock: Fix hotplug crash")

Signed-off-by: default avatarIngo Molnar <>
parent b672592f
......@@ -2511,6 +2511,10 @@ static inline void sched_clock_tick(void)
static inline void clear_sched_clock_stable(void)
static inline void sched_clock_idle_sleep_event(void)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment