From a867e5d6b362fc2982f19c5223f1946292643e57 Mon Sep 17 00:00:00 2001 From: "Liu, Jinsong" Date: Fri, 15 Jun 2012 09:03:39 +0800 Subject: [PATCH] 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 Signed-off-by: Liu, Jinsong Signed-off-by: Konrad Rzeszutek Wilk --- Reading git-format-patch failed