diff options
author | Gautham R Shenoy <[email protected]> | 2009-03-25 14:43:35 +0530 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2009-03-25 10:30:44 +0100 |
commit | 67bb6c036d1fc3d332c8527a36a546e3e72e822c (patch) | |
tree | 677795ae954a6fec174c8218e59d8301dc7f1a8a /net/lapb/lapb_subr.c | |
parent | b6d9842258d1ba27fb978cded74eb4b6aa15edc8 (diff) |
sched: Simple helper functions for find_busiest_group()
Impact: cleanup
Currently the load idx calculation code is in find_busiest_group().
Move that to a static inline helper function.
Similary, to find the first cpu of a sched_group we use
cpumask_first(sched_group_cpus(group))
Use a helper to that. It improves readability in some cases.
Signed-off-by: Gautham R Shenoy <[email protected]>
Acked-by: Peter Zijlstra <[email protected]>
Cc: Suresh Siddha <[email protected]>
Cc: "Balbir Singh" <[email protected]>
Cc: Nick Piggin <[email protected]>
Cc: "Dhaval Giani" <[email protected]>
Cc: Bharata B Rao <[email protected]>
Cc: "Vaidyanathan Srinivasan" <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions