summaryrefslogtreecommitdiff
path: root/drivers/misc/mei/main.c
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2012-11-11 17:38:02 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-11-15 15:34:18 -0800
commit744f0f2f424d374b233cea5f9b34caa851543755 (patch)
tree44a752a23b215fdbe390646aa5ab2f25025eb8ee /drivers/misc/mei/main.c
parenta562d5c25aa48c23774ab8d60bfd3bbcbca4bf1d (diff)
downloadkernel-common-744f0f2f424d374b233cea5f9b34caa851543755.tar.gz
kernel-common-744f0f2f424d374b233cea5f9b34caa851543755.tar.bz2
kernel-common-744f0f2f424d374b233cea5f9b34caa851543755.zip
mei: extract amthif specific code from mei_poll to mei_amthif_poll
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/main.c')
-rw-r--r--drivers/misc/mei/main.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/misc/mei/main.c b/drivers/misc/mei/main.c
index 43512e517952..2cc1ebb131ba 100644
--- a/drivers/misc/mei/main.c
+++ b/drivers/misc/mei/main.c
@@ -694,15 +694,7 @@ static unsigned int mei_poll(struct file *file, poll_table *wait)
if (cl == &dev->iamthif_cl) {
- mutex_unlock(&dev->device_lock);
- poll_wait(file, &dev->iamthif_cl.wait, wait);
- mutex_lock(&dev->device_lock);
- if (dev->iamthif_state == MEI_IAMTHIF_READ_COMPLETE &&
- dev->iamthif_file_object == file) {
- mask |= (POLLIN | POLLRDNORM);
- dev_dbg(&dev->pdev->dev, "run next amthi cb\n");
- mei_amthif_run_next_cmd(dev);
- }
+ mask = mei_amthif_poll(dev, file, wait);
goto out;
}