powerpc/powernv/sriov: Simplify used window tracking
authorOliver O'Halloran <oohall@gmail.com>
Wed, 22 Jul 2020 06:57:07 +0000 (16:57 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 26 Jul 2020 13:34:22 +0000 (23:34 +1000)
commitad9add529d99d195195c27abf99e42d4965d35e2
tree0ee54eb0f147fd10a928c7fc76af673df38536bc
parentfac248f8119170e3f8f54900985498ff6ee560bf
powerpc/powernv/sriov: Simplify used window tracking

No need for the multi-dimensional arrays, just use a bitmap.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200722065715.1432738-8-oohall@gmail.com
arch/powerpc/platforms/powernv/pci-sriov.c
arch/powerpc/platforms/powernv/pci.h