diff options
author | Alex Shi <alex.shi@intel.com> | 2013-06-20 10:18:55 +0800 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-06-27 10:07:41 +0200 |
commit | 2509940fd71c2e2915a05052bbdbf2d478364184 (patch) | |
tree | e2a9466c8cca831158c18a4c4c750420b11fea30 /kernel/sched/sched.h | |
parent | bf5b986ed4d20428eeec3df4a03dbfebb9b6538c (diff) | |
download | blackbird-op-linux-2509940fd71c2e2915a05052bbdbf2d478364184.tar.gz blackbird-op-linux-2509940fd71c2e2915a05052bbdbf2d478364184.zip |
sched/cfs_rq: Change atomic64_t removed_load to atomic_long_t
Similar to runnable_load_avg, blocked_load_avg variable, long type is
enough for removed_load in 64 bit or 32 bit machine.
Then we avoid the expensive atomic64 operations on 32 bit machine.
Signed-off-by: Alex Shi <alex.shi@intel.com>
Reviewed-by: Paul Turner <pjt@google.com>
Tested-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1371694737-29336-12-git-send-email-alex.shi@intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched/sched.h')
-rw-r--r-- | kernel/sched/sched.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 5585eb25e9a3..705991906fbe 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -278,8 +278,9 @@ struct cfs_rq { * the FAIR_GROUP_SCHED case). */ unsigned long runnable_load_avg, blocked_load_avg; - atomic64_t decay_counter, removed_load; + atomic64_t decay_counter; u64 last_decay; + atomic_long_t removed_load; #ifdef CONFIG_FAIR_GROUP_SCHED /* Required to track per-cpu representation of a task_group */ |