]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/mce: add .poll method for mcelog device driver
authorLiu, Jinsong <jinsong.liu@intel.com>
Fri, 15 Jun 2012 01:03:39 +0000 (09:03 +0800)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 19 Jun 2012 13:47:12 +0000 (09:47 -0400)
commit22e5ea92395ec969f1b9a22c8123202ebcd8d456
tree8969b1ae7d8358a5d2d07ad871ce13846f347f51
parent386aa157bf3af3578fbb4f44f8924a553b6d729d
xen/mce: add .poll method for mcelog device driver

If a driver leaves its poll method NULL, the device is assumed to
be both readable and writable without blocking.

This patch add .poll method to xen mcelog device driver, so that
when mcelog use system calls like ppoll or select, it would be
blocked when no data available, and avoid spinning at CPU.

Reported-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/mcelog.c