linux/arch/mips/include
Jiaxun Yang 166f0bf456 MIPS: cpu-features: Use boot_cpu_type for CPU type based features
[ Upstream commit 5487a7b606 ]

Some CPU feature macros were using current_cpu_type to mark feature
availability.

However current_cpu_type will use smp_processor_id, which is prohibited
under preemptable context.

Since those features are all uniform on all CPUs in a SMP system, use
boot_cpu_type instead of current_cpu_type to fix preemptable kernel.

Cc: stable@vger.kernel.org
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2023-08-30 16:18:11 +02:00
..
asm MIPS: cpu-features: Use boot_cpu_type for CPU type based features 2023-08-30 16:18:11 +02:00
uapi/asm Merge branch 'siginfo-si_trapno-for-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace 2021-09-01 14:42:36 -07:00