On Wed, 2010-12-29 at 22:40 +0800, Yong Zhang wrote:
No we cannot change stats on task_rq() since we don't hold any locks
there, but since we have IRQs disabled we can change stats on the local
rq.
It changes the accounting slightly (instead of accounting the wakeup on
the task's rq we account it on the waking cpu's rq) but that shouldn't
matter.
That's the purpose of this patch, we need to be able to do ttwu_stat()
without holding rq->lock.
I should have written a changelog but it was either finish all fancy
changelogs on an rfc series and post after the holidays or post
before ;-)
--