diff options
| author | Ingo Molnar <mingo@elte.hu> | 2008-05-12 15:21:03 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2008-06-06 09:19:33 -0400 |
| commit | 554ec22f075d46e4363520a407d2b7eeb5dfdd43 (patch) | |
| tree | 251ddf6cf1304e77e215814a087d183ccfe5e370 /include/linux | |
| parent | f7dcd80bbc8e7032443e6539ea1b830364f82200 (diff) | |
namespacecheck: more sched.c fixes
[ Stephen Rothwell <sfr@canb.auug.org.au>: build fix ]
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/sched.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index ae0be3c62375..dc36c3aea018 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
| @@ -134,7 +134,6 @@ extern unsigned long nr_running(void); | |||
| 134 | extern unsigned long nr_uninterruptible(void); | 134 | extern unsigned long nr_uninterruptible(void); |
| 135 | extern unsigned long nr_active(void); | 135 | extern unsigned long nr_active(void); |
| 136 | extern unsigned long nr_iowait(void); | 136 | extern unsigned long nr_iowait(void); |
| 137 | extern unsigned long weighted_cpuload(const int cpu); | ||
| 138 | 137 | ||
| 139 | struct seq_file; | 138 | struct seq_file; |
| 140 | struct cfs_rq; | 139 | struct cfs_rq; |
| @@ -823,23 +822,6 @@ extern int arch_reinit_sched_domains(void); | |||
| 823 | 822 | ||
| 824 | #endif /* CONFIG_SMP */ | 823 | #endif /* CONFIG_SMP */ |
| 825 | 824 | ||
| 826 | /* | ||
| 827 | * A runqueue laden with a single nice 0 task scores a weighted_cpuload of | ||
| 828 | * SCHED_LOAD_SCALE. This function returns 1 if any cpu is laden with a | ||
| 829 | * task of nice 0 or enough lower priority tasks to bring up the | ||
| 830 | * weighted_cpuload | ||
| 831 | */ | ||
| 832 | static inline int above_background_load(void) | ||
| 833 | { | ||
| 834 | unsigned long cpu; | ||
| 835 | |||
| 836 | for_each_online_cpu(cpu) { | ||
| 837 | if (weighted_cpuload(cpu) >= SCHED_LOAD_SCALE) | ||
| 838 | return 1; | ||
| 839 | } | ||
| 840 | return 0; | ||
| 841 | } | ||
| 842 | |||
| 843 | struct io_context; /* See blkdev.h */ | 825 | struct io_context; /* See blkdev.h */ |
| 844 | #define NGROUPS_SMALL 32 | 826 | #define NGROUPS_SMALL 32 |
| 845 | #define NGROUPS_PER_BLOCK ((unsigned int)(PAGE_SIZE / sizeof(gid_t))) | 827 | #define NGROUPS_PER_BLOCK ((unsigned int)(PAGE_SIZE / sizeof(gid_t))) |
