summaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2010-08-05 09:46:29 +0200
committerIngo Molnar <mingo@elte.hu>2010-08-05 09:46:29 +0200
commit0bcfe75807944106a3aa655a54bb610d62f3a7f5 (patch)
treed48d848e09d1bf48fe7fa23e9226f38ef342eed4 /kernel/sched.c
parentsched: Use correct macro to display sched_child_runs_first in /proc/sched_debug (diff)
parentsched: Revert nohz_ratelimit() for now (diff)
downloadlinux-0bcfe75807944106a3aa655a54bb610d62f3a7f5.tar.xz
linux-0bcfe75807944106a3aa655a54bb610d62f3a7f5.zip
Merge branch 'sched/urgent' into sched/core
Conflicts: include/linux/sched.h Merge reason: Add the leftover .35 urgent bits, fix the conflict. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 16f3f77f71be..f6c9bb6ac70b 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -1255,16 +1255,6 @@ void wake_up_idle_cpu(int cpu)
smp_send_reschedule(cpu);
}
-int nohz_ratelimit(int cpu)
-{
- struct rq *rq = cpu_rq(cpu);
- u64 diff = rq->clock - rq->nohz_stamp;
-
- rq->nohz_stamp = rq->clock;
-
- return diff < (NSEC_PER_SEC / HZ) >> 1;
-}
-
#endif /* CONFIG_NO_HZ */
static u64 sched_avg_period(void)