summaryrefslogtreecommitdiffstats
path: root/drivers/power/pmu_battery.c
diff options
context:
space:
mode:
authorJeff Moyer <jmoyer@redhat.com>2007-12-05 08:45:02 +0100
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-12-05 18:21:18 +0100
commite00ba3dae077f54cfd2af42e939a618caa7a3bca (patch)
treeeb2f29fe8df7cb29be7d1bdda8dabe825f30f182 /drivers/power/pmu_battery.c
parentMerge branch 'upstream-fixes' of master.kernel.org:/pub/scm/linux/kernel/git/... (diff)
downloadlinux-e00ba3dae077f54cfd2af42e939a618caa7a3bca.tar.xz
linux-e00ba3dae077f54cfd2af42e939a618caa7a3bca.zip
aio: only account I/O wait time in read_events if there are active requests
On 2.6.24, top started showing 100% iowait on one CPU when a UML instance was running (but completely idle). The UML code sits in io_getevents waiting for an event to be submitted and completed. Fix this by checking ctx->reqs_active before scheduling to determine whether or not we are waiting for I/O. Signed-off-by: Jeff Moyer <jmoyer@redhat.com> Cc: Zach Brown <zach.brown@oracle.com> Cc: Miklos Szeredi <miklos@szeredi.hu> Cc: Jeff Dike <jdike@addtoit.com> Cc: "Rafael J. Wysocki" <rjw@sisk.pl> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/power/pmu_battery.c')
0 files changed, 0 insertions, 0 deletions