[Resend patch v8 04/13] sched: fix slept time double counting in enqueue entity

2013-06-19 Thread Alex Shi
The wakeuped migrated task will __synchronize_entity_decay(se); in migrate_task_rq_fair, then it needs to set `se->avg.last_runnable_update -= (-se->avg.decay_count) << 20' before update_entity_load_avg, in order to avoid slept time is updated twice for se.avg.load_avg_contrib in both

[Resend patch v8 04/13] sched: fix slept time double counting in enqueue entity

2013-06-19 Thread Alex Shi
The wakeuped migrated task will __synchronize_entity_decay(se); in migrate_task_rq_fair, then it needs to set `se-avg.last_runnable_update -= (-se-avg.decay_count) 20' before update_entity_load_avg, in order to avoid slept time is updated twice for se.avg.load_avg_contrib in both __syncchronize