1
0
Files
linux/kernel
Peter Zijlstra c7138f37f9 perf_counter: fix perf_poll()
Impact: fix kerneltop 100% CPU usage

Only return a poll event when there's actually been one, poll_wait()
doesn't actually wait for the waitq you pass it, it only enqueues
you on it.

Only once all FDs have been iterated and none of thm returned a
poll-event will it schedule().

Also make it return POLL_HUP when there's not mmap() area to read from.

Further, fix a silly bug in the write code.

Reported-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arjan van de Ven <arjan@infradead.org>
Orig-LKML-Reference: <1237897096.24918.181.camel@twins>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-04-06 09:30:32 +02:00
..
2009-04-02 19:04:55 -07:00
2009-01-14 18:09:02 +01:00
2009-03-13 11:25:53 +01:00
2009-04-06 09:30:32 +02:00
2009-03-30 22:05:16 +10:30
2009-01-06 11:07:15 +01:00
2009-04-03 16:42:35 +01:00
2009-04-03 16:42:35 +01:00
2009-03-24 10:52:46 +11:00