History

sched: Remove rcu_read_lock/unlock() from select_idle_sibling()

select_idle_sibling() is called from select_task_rq_fair(), which already has the RCU read lock held.

Nikunj A. Dadhania committed 14 years ago

Commit 62f65361 parent 9388dc31 file · +0 −4Browse files

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

Unified · Split

kernel/sched/fair.c+0−4
@@ -2670,8 +2670,6 @@ static int select_idle_sibling(struct task_struct *p, int target) · 2669 unmodified lines
26702670 /*
26712671 * Otherwise, iterate the domains and find an elegible idle cpu.
26722672 */
2673− rcu_read_lock();
2674−
26752673 sd = rcu_dereference(per_cpu(sd_llc, target));
26762674 for_each_lower_domain(sd) {
26772675 sg = sd->groups;
@@ -2693,8 +2691,6 @@ next: · 15 unmodified lines
26932691 } while (sg != sd->groups);
26942692 }
26952693 done:
2696− rcu_read_unlock();
2697−
26982694 return target;
26992695 }
27002696

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