]> asedeno.scripts.mit.edu Git - linux.git/commit
Drivers: hv: vmbus: Break out synic enable and disable operations
authorDexuan Cui <decui@microsoft.com>
Thu, 5 Sep 2019 23:01:15 +0000 (23:01 +0000)
committerSasha Levin <sashal@kernel.org>
Fri, 6 Sep 2019 18:52:44 +0000 (14:52 -0400)
commitdba61cda30469a6c4fed0f8d5bf2b6001ca80a51
treeeb32b786f2cca3575d7455463d8b3a5b503d6445
parent345f0254e5b2f4090e4a00ebc996e07e9bdcd070
Drivers: hv: vmbus: Break out synic enable and disable operations

Break out synic enable and disable operations into separate
hv_synic_disable_regs() and hv_synic_enable_regs() functions for use by a
later patch to support hibernation.

There is no functional change except the unnecessary check
"if (sctrl.enable != 1) return -EFAULT;" which is removed, because when
we're in hv_synic_cleanup(), we're absolutely sure sctrl.enable must be 1.

Signed-off-by: Dexuan Cui <decui@microsoft.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hv/hv.c
drivers/hv/hyperv_vmbus.h