Skip to content

Commit

Permalink
namespacecheck: more sched.c fixes
Browse files Browse the repository at this point in the history
[ 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>
  • Loading branch information
Ingo Molnar committed Jun 6, 2008
1 parent f7dcd80 commit 554ec22
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)))
Expand Down

0 comments on commit 554ec22

Please sign in to comment.