aboutsummaryrefslogtreecommitdiff
path: root/include/linux/smsc911x.h
diff options
context:
space:
mode:
authorGravatar Thomas Gleixner <tglx@linutronix.de> 2009-07-17 14:15:47 +0200
committerGravatar Thomas Gleixner <tglx@linutronix.de> 2009-07-18 14:19:53 +0200
commit6301cb95c119ebf324bb96ee226fa9ddffad80a7 (patch)
tree7201f406d135212bae3775dc7d71cbdd6990e5de /include/linux/smsc911x.h
parentsched: fix load average accounting vs. cpu hotplug (diff)
downloadlinux-6301cb95c119ebf324bb96ee226fa9ddffad80a7.tar.gz
linux-6301cb95c119ebf324bb96ee226fa9ddffad80a7.tar.bz2
linux-6301cb95c119ebf324bb96ee226fa9ddffad80a7.zip
sched: fix nr_uninterruptible accounting of frozen tasks really
commit e3c8ca8336 (sched: do not count frozen tasks toward load) broke the nr_uninterruptible accounting on freeze/thaw. On freeze the task is excluded from accounting with a check for (task->flags & PF_FROZEN), but that flag is cleared before the task is thawed. So while we prevent that the task with state TASK_UNINTERRUPTIBLE is accounted to nr_uninterruptible on freeze we decrement nr_uninterruptible on thaw. Use a separate flag which is handled by the freezing task itself. Set it before calling the scheduler with TASK_UNINTERRUPTIBLE state and clear it after we return from frozen state. Cc: <stable@kernel.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/smsc911x.h')
0 files changed, 0 insertions, 0 deletions