diff options
author | Andrea Parri (Microsoft) <parri.andrea@gmail.com> | 2020-06-17 18:46:35 +0200 |
---|---|---|
committer | Wei Liu <wei.liu@kernel.org> | 2020-06-19 15:38:10 +0000 |
commit | 5bf74682118b3003c8f9b0b0ec596e473fc6eb82 (patch) | |
tree | 574d61c2599a3b8b5cb4cbc835f1cf96ff2af7c6 /drivers/hv/vmbus_drv.c | |
parent | b3a9e3b9622ae10064826dccb4f7a52bd88c7407 (diff) | |
download | linux-5bf74682118b3003c8f9b0b0ec596e473fc6eb82.tar.gz linux-5bf74682118b3003c8f9b0b0ec596e473fc6eb82.tar.bz2 linux-5bf74682118b3003c8f9b0b0ec596e473fc6eb82.zip |
Drivers: hv: vmbus: Remove the target_vp field from the vmbus_channel struct
The field is read only in __vmbus_open() and it is already stored twice
(after a call to hv_cpu_number_to_vp_number()) in target_cpu_store() and
init_vp_index(); there is no need to "cache" its value in the channel
data structure.
Suggested-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Andrea Parri (Microsoft) <parri.andrea@gmail.com>
Link: https://lore.kernel.org/r/20200617164642.37393-2-parri.andrea@gmail.com
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'drivers/hv/vmbus_drv.c')
-rw-r--r-- | drivers/hv/vmbus_drv.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index 9147ee9d5f7d..d2ddb46f1359 100644 --- a/drivers/hv/vmbus_drv.c +++ b/drivers/hv/vmbus_drv.c @@ -23,7 +23,6 @@ #include <linux/cpu.h> #include <linux/sched/task_stack.h> -#include <asm/mshyperv.h> #include <linux/delay.h> #include <linux/notifier.h> #include <linux/ptrace.h> @@ -1779,7 +1778,6 @@ static ssize_t target_cpu_store(struct vmbus_channel *channel, */ channel->target_cpu = target_cpu; - channel->target_vp = hv_cpu_number_to_vp_number(target_cpu); channel->numa_node = cpu_to_node(target_cpu); /* See init_vp_index(). */ |