diff options
author | Peter Zijlstra <[email protected]> | 2013-08-19 15:22:57 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2013-09-02 08:27:35 +0200 |
commit | 147c5fc2bad780d8093b547f2baa204e78107faf (patch) | |
tree | d3edc50c11c47dc03d405275adffd116d5d5c480 /lib/memory-notifier-error-inject.c | |
parent | 56cf515b4b1567c4e8fa9926175b40c66b9ec472 (diff) |
sched/fair: Shrink sg_lb_stats and play memset games
We can shrink sg_lb_stats because rq::nr_running is an unsigned int
and cpu numbers are 'int'
Before:
sgs: /* size: 72, cachelines: 2, members: 10 */
sds: /* size: 184, cachelines: 3, members: 7 */
After:
sgs: /* size: 56, cachelines: 1, members: 10 */
sds: /* size: 152, cachelines: 3, members: 7 */
Further we can avoid clearing all of sds since we do a total
clear/assignment of sg_stats in update_sg_lb_stats() with exception of
busiest_stat.avg_load which is referenced in update_sd_pick_busiest().
Signed-off-by: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions