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-03 10:39:20 -07:00
2009-04-05 00:32:22 +02:00
2009-03-31 09:56:26 +01:00
2009-03-31 15:09:39 +11:00
2009-03-31 09:56:29 +01:00
2009-04-02 19:04:51 -07:00
2009-03-28 15:54:48 -04:00
2009-03-30 15:22:03 +02:00
2009-04-05 02:14:15 -04:00
2005-04-16 15:20:36 -07:00
2009-04-01 08:59:23 -07:00
2009-04-01 08:59:23 -07:00
2009-04-02 19:05:01 -07:00
2009-04-01 08:59:14 -07:00
2008-05-29 01:38:46 -07:00
2009-03-28 13:30:43 -07:00
2009-04-02 21:09:10 -07:00
2009-04-03 15:24:35 -07:00
2009-04-04 14:20:34 -07:00
2009-04-03 14:53:32 -07:00
2009-04-02 19:05:00 -07:00
2009-04-02 19:04:57 -07:00
2009-04-02 19:55:28 +01:00
2009-04-02 19:55:30 +01:00
2009-03-30 21:46:44 +02:00
2009-04-03 14:53:32 -07:00
2009-04-01 15:42:34 -07:00
2009-04-01 08:59:20 -07:00
2009-04-03 11:10:33 -07:00
2009-04-01 08:59:29 -07:00
2009-03-31 23:00:26 -04:00
2009-04-02 21:09:10 -07:00
2009-04-03 16:42:37 +01:00
2009-04-03 16:42:39 +01:00
2009-04-01 08:59:22 -07:00
2009-04-01 21:42:26 +02:00
2009-03-30 15:14:53 +02:00
2009-04-03 09:48:29 -07:00
2009-03-28 21:34:44 +01:00
2009-03-30 12:43:28 -03:00
2009-03-28 21:34:45 +01:00
2009-03-31 20:15:33 +02:00
2009-04-02 19:04:53 -07:00
2009-03-28 13:30:43 -07:00
2009-04-06 09:30:15 +02:00
2009-04-03 10:36:57 -07:00
2009-04-02 00:49:02 +02:00
2009-03-31 01:14:44 +04:00
2009-03-30 21:46:54 +02:00
2009-03-30 12:43:22 -03:00
2009-04-03 15:24:35 -07:00
2009-03-31 13:05:32 +10:30
2009-04-02 19:04:49 -07:00
2009-04-06 09:02:57 +02:00
2009-04-05 11:04:19 -07:00
2009-03-31 13:05:35 +10:30
2009-03-30 15:21:59 +02:00
2009-04-02 19:05:10 -07:00
2009-04-01 08:59:17 -07:00
2009-04-02 19:04:56 -07:00
2009-04-05 11:04:19 -07:00
2009-04-02 19:04:48 -07:00
2009-04-02 19:04:48 -07:00
2009-04-05 10:33:07 -07:00
2009-03-31 23:00:27 -04:00
2009-04-05 11:04:19 -07:00
2009-03-31 13:05:30 +10:30
2009-04-01 07:38:54 -04:00
2009-04-06 09:30:26 +02:00
2009-03-28 13:30:43 -07:00
2009-03-28 23:55:58 -07:00
2009-04-03 16:42:42 +01:00
2009-04-03 16:42:44 +01:00
2009-04-03 16:42:43 +01:00
2009-04-01 13:28:15 -04:00
2009-03-31 23:00:27 -04:00
2009-04-02 19:04:56 -07:00
2009-04-01 08:59:13 -07:00
2009-04-03 16:42:36 +01:00
2009-04-03 16:42:39 +01:00
2009-04-01 08:59:13 -07:00
2009-04-02 19:05:03 -07:00
2009-04-01 09:47:12 -07:00
2009-04-06 09:30:32 +02:00
2009-04-01 08:59:13 -07:00
2009-03-27 22:23:52 -04:00
2009-03-31 01:14:44 +04:00
2009-04-02 19:05:00 -07:00
2009-03-30 15:22:01 +02:00
2009-03-30 14:28:58 -07:00
2009-03-30 12:16:38 -07:00
2009-03-30 12:16:39 -07:00
2009-03-30 12:33:01 -07:00
2009-03-30 12:16:39 -07:00
2009-04-02 19:04:51 -07:00
2009-04-01 08:59:24 -07:00
2009-04-06 09:30:15 +02:00
2009-03-28 15:01:37 +11:00
2009-03-30 22:05:11 +10:30
2009-03-29 01:40:34 -07:00
2009-04-03 16:42:35 +01:00
2009-04-02 00:49:02 +02:00
2009-04-02 19:05:11 -07:00
2009-04-05 10:30:21 -07:00
2009-04-01 08:59:16 -07:00
2009-04-01 08:59:15 -07:00
2009-04-02 19:05:01 -07:00
2009-04-06 09:02:57 +02:00
2009-03-30 17:17:35 -07:00
2009-04-02 19:05:00 -07:00
2009-04-01 08:59:10 -07:00
2009-03-30 12:43:40 -03:00
2009-03-30 12:43:15 -03:00
2009-04-01 08:59:20 -07:00
2009-04-02 19:04:50 -07:00
2009-04-01 08:59:13 -07:00