mbox series

[v3,0/2] PCI: hv: Refactor hv_irq_unmask() to use hv_vpset and cpumask_to_vpset()

Message ID cover.1548745212.git.m.maya.nakamura@gmail.com (mailing list archive)
Headers show
Series PCI: hv: Refactor hv_irq_unmask() to use hv_vpset and cpumask_to_vpset() | expand

Message

Maya Nakamura Jan. 29, 2019, 7:15 a.m. UTC
This patchset removes a duplicate definition of VP set (hv_vp_set) and
uses the common definition (hv_vpset) that is used in other places. It
changes the order of the members in struct hv_pcibus_device due to
flexible array in hv_vpset.

It also removes the duplicate implementation of cpumask_to_vpset(), uses
the shared implementation, and exports hv_max_vp_index, which is
required by cpumask_to_vpset().

Maya Nakamura (2):
  PCI: hv: Replace hv_vp_set with hv_vpset
  PCI: hv: Refactor hv_irq_unmask() to use cpumask_to_vpset()

 arch/x86/hyperv/hv_init.c           |  1 +
 drivers/pci/controller/pci-hyperv.c | 59 +++++++++++++----------------
 2 files changed, 28 insertions(+), 32 deletions(-)

Comments

Lorenzo Pieralisi Feb. 13, 2019, 3:15 p.m. UTC | #1
On Mon, Jan 28, 2019 at 11:15:37PM -0800, Maya Nakamura wrote:
> This patchset removes a duplicate definition of VP set (hv_vp_set) and
> uses the common definition (hv_vpset) that is used in other places. It
> changes the order of the members in struct hv_pcibus_device due to
> flexible array in hv_vpset.
> 
> It also removes the duplicate implementation of cpumask_to_vpset(), uses
> the shared implementation, and exports hv_max_vp_index, which is
> required by cpumask_to_vpset().
> 
> Maya Nakamura (2):
>   PCI: hv: Replace hv_vp_set with hv_vpset
>   PCI: hv: Refactor hv_irq_unmask() to use cpumask_to_vpset()
> 
>  arch/x86/hyperv/hv_init.c           |  1 +
>  drivers/pci/controller/pci-hyperv.c | 59 +++++++++++++----------------
>  2 files changed, 28 insertions(+), 32 deletions(-)

I need a maintainer ACK to merge this series.

Lorenzo
Sasha Levin Feb. 15, 2019, 1:58 a.m. UTC | #2
On Wed, Feb 13, 2019 at 03:15:49PM +0000, Lorenzo Pieralisi wrote:
>On Mon, Jan 28, 2019 at 11:15:37PM -0800, Maya Nakamura wrote:
>> This patchset removes a duplicate definition of VP set (hv_vp_set) and
>> uses the common definition (hv_vpset) that is used in other places. It
>> changes the order of the members in struct hv_pcibus_device due to
>> flexible array in hv_vpset.
>>
>> It also removes the duplicate implementation of cpumask_to_vpset(), uses
>> the shared implementation, and exports hv_max_vp_index, which is
>> required by cpumask_to_vpset().
>>
>> Maya Nakamura (2):
>>   PCI: hv: Replace hv_vp_set with hv_vpset
>>   PCI: hv: Refactor hv_irq_unmask() to use cpumask_to_vpset()
>>
>>  arch/x86/hyperv/hv_init.c           |  1 +
>>  drivers/pci/controller/pci-hyperv.c | 59 +++++++++++++----------------
>>  2 files changed, 28 insertions(+), 32 deletions(-)
>
>I need a maintainer ACK to merge this series.

Acked-by: Sasha Levin <sashal@kernel.org>

--
Thanks,
Sasha
Lorenzo Pieralisi Feb. 15, 2019, 10:36 a.m. UTC | #3
On Mon, Jan 28, 2019 at 11:15:37PM -0800, Maya Nakamura wrote:
> This patchset removes a duplicate definition of VP set (hv_vp_set) and
> uses the common definition (hv_vpset) that is used in other places. It
> changes the order of the members in struct hv_pcibus_device due to
> flexible array in hv_vpset.
> 
> It also removes the duplicate implementation of cpumask_to_vpset(), uses
> the shared implementation, and exports hv_max_vp_index, which is
> required by cpumask_to_vpset().
> 
> Maya Nakamura (2):
>   PCI: hv: Replace hv_vp_set with hv_vpset
>   PCI: hv: Refactor hv_irq_unmask() to use cpumask_to_vpset()
> 
>  arch/x86/hyperv/hv_init.c           |  1 +
>  drivers/pci/controller/pci-hyperv.c | 59 +++++++++++++----------------
>  2 files changed, 28 insertions(+), 32 deletions(-)

Applied to pci/hv for v5.1, thanks.

Lorenzo