Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100183
b: refs/heads/master
c: 554ec22
h: refs/heads/master
i:
  100181: 6a25f81
  100179: 9f8883d
  100175: 4519841
v: v3
  • Loading branch information
Ingo Molnar committed Jun 6, 2008
1 parent b6d2d61 commit 875cee0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f7dcd80bbc8e7032443e6539ea1b830364f82200
refs/heads/master: 554ec22f075d46e4363520a407d2b7eeb5dfdd43
18 changes: 0 additions & 18 deletions trunk/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 875cee0

Please sign in to comment.