mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
b3a9e3b962
commit
5bf7468211
4 changed files with 9 additions and 14 deletions
|
@ -803,15 +803,14 @@ struct vmbus_channel {
|
|||
u64 sig_event;
|
||||
|
||||
/*
|
||||
* Starting with win8, this field will be used to specify
|
||||
* the target virtual processor on which to deliver the interrupt for
|
||||
* the host to guest communication.
|
||||
* Prior to win8, incoming channel interrupts would only
|
||||
* be delivered on cpu 0. Setting this value to 0 would
|
||||
* preserve the earlier behavior.
|
||||
* Starting with win8, this field will be used to specify the
|
||||
* target CPU on which to deliver the interrupt for the host
|
||||
* to guest communication.
|
||||
*
|
||||
* Prior to win8, incoming channel interrupts would only be
|
||||
* delivered on CPU 0. Setting this value to 0 would preserve
|
||||
* the earlier behavior.
|
||||
*/
|
||||
u32 target_vp;
|
||||
/* The corresponding CPUID in the guest */
|
||||
u32 target_cpu;
|
||||
int numa_node;
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue