History

Merge git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-sched

* git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-sched: sched: group scheduler, set uid share fix

Linus Torvalds committed 18 years ago

Commit b2214fc2 parents 00e1077 c61935f1 file · +8 −0Browse files

Showing the changes to kernel (1 of 1 file). Show all

Unified · Split

kernel/sched.c+8−0
@@ -7153,6 +7153,14 @@ int sched_group_set_shares(struct task_group *tg, unsigned long shares) · 7152 unmodified lines
71537153 {
71547154 int i;
71557155
7156+ /*
7157+ * A weight of 0 or 1 can cause arithmetics problems.
7158+ * (The default weight is 1024 - so there's no practical
7159+ * limitation from this.)
7160+ */
7161+ if (shares < 2)
7162+ shares = 2;
7163+
71567164 spin_lock(&tg->lock);
71577165 if (tg->shares == shares)
71587166 goto done;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t