]> git.baikalelectronics.ru Git - kernel.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>
Thu, 19 Jul 2012 19:51:41 +0000 (15:51 -0400)
commitf2e272f5954c43a4215d0414a832d5854008850a
tree4dc03701387d766b5f2b44c3d3efa0e8e350f1b4
parent3bc83f26858670c68f6ce53c6c3953ea5dc1cd4a
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