Drivers: hv: util: Make hv_poll_channel() a little more efficient
authorK. Y. Srinivasan <kys@microsoft.com>
Sun, 30 Apr 2017 23:21:17 +0000 (16:21 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 May 2017 14:55:28 +0000 (16:55 +0200)
commit1e052a16eb2caf6727b594cad0744ccdfddf4254
treef0295abe9b57148d11ac82bf8768728f7946bef6
parent48f4ccdfc46906627f77fda94d80f2db1bd23ba3
Drivers: hv: util: Make hv_poll_channel() a little more efficient

The current code unconditionally sends an IPI. If we are running on the
correct CPU and are in interrupt level, we don't need an IPI.
Make this adjustment.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/hyperv_vmbus.h