]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - kernel/sched/clock.c
sched/fair: Define sched_idle_cpu() only for SMP configurations
[linux.git] / kernel / sched / clock.c
index 1152259a4ca0cd79379eba2c0c23bb3b8003780d..12bca64dff7319e38fce20f8d23f9bcdfd952b3a 100644 (file)
@@ -370,7 +370,7 @@ u64 sched_clock_cpu(int cpu)
        if (sched_clock_stable())
                return sched_clock() + __sched_clock_offset;
 
-       if (!static_branch_unlikely(&sched_clock_running))
+       if (!static_branch_likely(&sched_clock_running))
                return sched_clock();
 
        preempt_disable_notrace();
@@ -393,7 +393,7 @@ void sched_clock_tick(void)
        if (sched_clock_stable())
                return;
 
-       if (!static_branch_unlikely(&sched_clock_running))
+       if (!static_branch_likely(&sched_clock_running))
                return;
 
        lockdep_assert_irqs_disabled();
@@ -460,7 +460,7 @@ void __init sched_clock_init(void)
 
 u64 sched_clock_cpu(int cpu)
 {
-       if (!static_branch_unlikely(&sched_clock_running))
+       if (!static_branch_likely(&sched_clock_running))
                return 0;
 
        return sched_clock();