Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 98030
b: refs/heads/master
c: 2e08478
h: refs/heads/master
v: v3
  • Loading branch information
Lai Jiangshan authored and Ingo Molnar committed Jun 12, 2008
1 parent a2de652 commit 4d1d9ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 16882c1e962b4be5122fc05aaf2afc10fd9e2d15
refs/heads/master: 2e084786f6fe052274f1dfa7c675fe4a02cacd6e
7 changes: 5 additions & 2 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,12 +312,15 @@ static DEFINE_SPINLOCK(task_group_lock);
#endif

/*
* A weight of 0, 1 or ULONG_MAX can cause arithmetics problems.
* A weight of 0 or 1 can cause arithmetics problems.
* A weight of a cfs_rq is the sum of weights of which entities
* are queued on this cfs_rq, so a weight of a entity should not be
* too large, so as the shares value of a task group.
* (The default weight is 1024 - so there's no practical
* limitation from this.)
*/
#define MIN_SHARES 2
#define MAX_SHARES (ULONG_MAX - 1)
#define MAX_SHARES (1UL << 18)

static int init_task_group_load = INIT_TASK_GROUP_LOAD;
#endif
Expand Down

0 comments on commit 4d1d9ae

Please sign in to comment.