android_kernel_xiaomi_sm8350/arch/mips/include/asm
Jiaxun Yang 7e5b7360df MIPS: cpu-features: Use boot_cpu_type for CPU type based features
[ Upstream commit 5487a7b60695a92cf998350e4beac17144c91fcd ]

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>
2023-08-30 16:27:21 +02:00
..
dec MIPS: dec: prom: Address -Warray-bounds warning 2023-08-30 16:27:09 +02:00
emma
fw MIPS: pic32: treat port as signed integer 2022-12-08 11:22:57 +01:00
ip32
lasat
mach-ar7
mach-ath25
mach-ath79
mach-au1x00
mach-bcm47xx
mach-bcm63xx
mach-bmips
mach-cavium-octeon
mach-cobalt
mach-db1x00
mach-dec
mach-emma2rh
mach-generic
mach-ip22
mach-ip27 MIPS: IP27: Remove incorrect `cpu_has_fpu' override 2022-06-14 18:11:50 +02:00
mach-ip28
mach-ip32
mach-jazz
mach-jz4740
mach-lantiq
mach-lasat
mach-loongson32
mach-loongson64
mach-malta
mach-netlogic
mach-paravirt
mach-pic32
mach-pistachio
mach-pmcs-msp71xx
mach-pnx833x
mach-ralink
mach-rc32434 MIPS: Fix a compilation issue 2023-03-17 08:32:52 +01:00
mach-rm
mach-sibyte
mach-tx39xx
mach-tx49xx
mach-vr41xx
mach-xilfpga
mips-boards
netlogic
octeon MIPS: Octeon: Fix build errors using clang 2022-01-27 09:19:48 +01:00
pci
sgi
sibyte
sn
txx9
vdso
vr41xx
xtalk
abi.h
addrspace.h
amon.h
arch_hweight.h
asm-eva.h
asm-offsets.h
asm-prototypes.h
asm.h
asmmacro-32.h
asmmacro-64.h
asmmacro.h
atomic.h
barrier.h
bcache.h
bitops.h
bitrev.h
bmips-spaces.h
bmips.h
bootinfo.h
branch.h
break.h
bug.h
bugs.h mips/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:56:34 +02:00
cache.h
cacheflush.h
cacheops.h
cdmm.h
cevt-r4k.h
checksum.h
clock.h
clocksource.h
cmp.h
cmpxchg.h
compat-signal.h
compat.h
compiler.h
cop2.h
cpu-features.h MIPS: cpu-features: Use boot_cpu_type for CPU type based features 2023-08-30 16:27:21 +02:00
cpu-info.h
cpu-type.h
cpu.h
cpufeature.h
debug.h
delay.h
div64.h
dma-coherence.h
dma-direct.h
dma-mapping.h
dma.h
ds1287.h
dsemul.h
dsp.h
edac.h
elf.h
errno.h
eva.h
exec.h
extable.h
fb.h
fixmap.h
floppy.h
fpregdef.h
fpu_emulator.h
fpu.h
ftrace.h
futex.h
ginvt.h
gio_device.h
gt64120.h
hardirq.h
hazards.h
highmem.h
hpet.h
hugetlb.h
hw_irq.h
i8259.h
ide.h
idle.h
inst.h
io.h
irq_cpu.h
irq_gt641xx.h
irq_regs.h
irq.h
irqflags.h
isa-rev.h
isadep.h
jazz.h
jazzdma.h
jump_label.h
Kbuild
kdebug.h
kexec.h
kgdb.h
kmap_types.h
kprobes.h
kvm_host.h
kvm_para.h
linkage.h
llsc.h
local.h
m48t37.h
maar.h
machine.h
mc146818-time.h
mc146818rtc.h
mips_machine.h
mips_mt.h
mips-cm.h
mips-cpc.h
mips-cps.h
mips-gic.h
mips-r2-to-r6-emul.h
mipsmtregs.h
mipsprom.h
mipsregs.h
mmiowb.h
mmu_context.h
mmu.h
mmzone.h
module.h
msa.h
msc01_ic.h
nile4.h
paccess.h
page.h
pci.h
perf_event.h
pgalloc.h
pgtable-32.h
pgtable-64.h
pgtable-bits.h
pgtable.h
pm-cps.h
pm.h
pmon.h
prefetch.h
processor.h
prom.h
ptrace.h
r4k-timer.h
r4kcache.h
reboot.h
reg.h
regdef.h
rtlx.h
seccomp.h
serial.h
setup.h MIPS: fix fortify panic when copying asm exception handlers 2022-04-15 14:18:34 +02:00
sgialib.h
sgiarcs.h
shmparam.h
sigcontext.h
signal.h
sim.h
smp-cps.h
smp-ops.h
smp.h
sni.h
socket.h
sparsemem.h
spinlock_types.h
spinlock.h
spram.h
stackframe.h
stackprotector.h
stacktrace.h
string.h
switch_to.h
syscall.h mips: fix syscall_get_nr 2023-03-11 16:44:04 +01:00
termios.h
thread_info.h
time.h
timex.h mips: use fallback for random_get_entropy() instead of just c0 random 2022-06-22 14:11:15 +02:00
tlb.h
tlbdebug.h
tlbex.h
tlbflush.h
tlbmisc.h
topology.h
traps.h
txx9irq.h
txx9pio.h
txx9tmr.h
types.h
uaccess.h
uasm.h
unistd.h
uprobes.h
vdso.h
vga.h
vpe.h MIPS: vpe-mt: drop physical_memsize 2023-03-11 16:43:52 +01:00
war.h
watch.h
wbflush.h
yamon-dt.h