]> www.infradead.org Git - users/mchehab/rasdaemon.git/commit
ras-events: Only use pthreads for collect if poll() not available
authorMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 28 May 2013 11:47:57 +0000 (08:47 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 28 May 2013 12:48:29 +0000 (09:48 -0300)
commiteff7c9e0b5ef51b88a007014218d2eeef583061d
tree071744d29b882457f2ea5fc62558603ecd05a1f0
parentc17f18f1b3099324a26aef67caa0e608126fa8bc
ras-events: Only use pthreads for collect if poll() not available

Before kernel 3.10, one pthread per cpu was used, as the code
would need to run an endless loop, in order to get events.

With kernel 3.10 and upper, we can simply use poll() there.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
ras-events.c