From 875cee074cb4104f19bc4f2af2ff56a7a09352e9 Mon Sep 17 00:00:00 2001 From: Ingo Molnar Date: Mon, 12 May 2008 21:21:03 +0200 Subject: [PATCH] --- yaml --- r: 100183 b: refs/heads/master c: 554ec22f075d46e4363520a407d2b7eeb5dfdd43 h: refs/heads/master i: 100181: 6a25f81594768acf22b50a7a873aa09b8c29c009 100179: 9f8883da0335fba1ec991138715aeee4ecbdf3aa 100175: 4519841027502da8c9027092eda70682a2df1a6e v: v3 --- [refs] | 2 +- trunk/include/linux/sched.h | 18 ------------------ 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/[refs] b/[refs] index 61a359ee4f39..7c9dfbefa1e3 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f7dcd80bbc8e7032443e6539ea1b830364f82200 +refs/heads/master: 554ec22f075d46e4363520a407d2b7eeb5dfdd43 diff --git a/trunk/include/linux/sched.h b/trunk/include/linux/sched.h index ae0be3c62375..dc36c3aea018 100644 --- a/trunk/include/linux/sched.h +++ b/trunk/include/linux/sched.h @@ -134,7 +134,6 @@ extern unsigned long nr_running(void); extern unsigned long nr_uninterruptible(void); extern unsigned long nr_active(void); extern unsigned long nr_iowait(void); -extern unsigned long weighted_cpuload(const int cpu); struct seq_file; struct cfs_rq; @@ -823,23 +822,6 @@ extern int arch_reinit_sched_domains(void); #endif /* CONFIG_SMP */ -/* - * A runqueue laden with a single nice 0 task scores a weighted_cpuload of - * SCHED_LOAD_SCALE. This function returns 1 if any cpu is laden with a - * task of nice 0 or enough lower priority tasks to bring up the - * weighted_cpuload - */ -static inline int above_background_load(void) -{ - unsigned long cpu; - - for_each_online_cpu(cpu) { - if (weighted_cpuload(cpu) >= SCHED_LOAD_SCALE) - return 1; - } - return 0; -} - struct io_context; /* See blkdev.h */ #define NGROUPS_SMALL 32 #define NGROUPS_PER_BLOCK ((unsigned int)(PAGE_SIZE / sizeof(gid_t)))