Searched hist:c1f45f4eb6fd8704f72d5ed64184121e9fe129a0 (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/arch/arm64/include/asm/ |
H A D | smp.h | diff c1f45f4eb6fd8704f72d5ed64184121e9fe129a0 Wed Dec 02 12:41:03 CST 2020 David Brazdil <dbrazdil@google.com> arm64: Make cpu_logical_map() take unsigned int
CPU index should never be negative. Change the signature of (set_)cpu_logical_map to take an unsigned int.
This still works even if the users treat the CPU index as an int, and will allow the hypervisor's implementation to check that the index is valid with a single upper-bound check.
Signed-off-by: David Brazdil <dbrazdil@google.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20201202184122.26046-8-dbrazdil@google.com
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | setup.c | diff c1f45f4eb6fd8704f72d5ed64184121e9fe129a0 Wed Dec 02 12:41:03 CST 2020 David Brazdil <dbrazdil@google.com> arm64: Make cpu_logical_map() take unsigned int
CPU index should never be negative. Change the signature of (set_)cpu_logical_map to take an unsigned int.
This still works even if the users treat the CPU index as an int, and will allow the hypervisor's implementation to check that the index is valid with a single upper-bound check.
Signed-off-by: David Brazdil <dbrazdil@google.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20201202184122.26046-8-dbrazdil@google.com
|