kernel_optimize_test/arch/mips
Paul Cercueil 5f5ed0ebcf MIPS: cpu-probe: ingenic: Fix broken BUG_ON
The previous code was doing:
BUG_ON(!__builtin_constant_p(cpu_has_counter) || cpu_has_counter);

This only worked as the "cpu_has_counter" macro was overridden in
<cpu-feature-overrides.h>. The default "cpu_has_counter" macro is
non-constant, which triggered the BUG_ON() independently of the value
returned by the macro.

What we want to check here, is that *if* the macro was overridden to a
compile-time constant, then must be defined to zero, otherwise it's a
bug.

So the correct check is:
BUG_ON(__builtin_constant_p(cpu_has_counter) && cpu_has_counter);

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
2020-09-18 16:27:32 +02:00
..
alchemy
ar7
ath25
ath79
bcm47xx
bcm63xx MIPS: BCM63xx: switch to SPDX license identifier 2020-08-17 13:10:31 +02:00
bmips
boot MIPS: dts/ingenic: Cleanup qi_lb60.dts 2020-09-07 22:18:24 +02:00
cavium-octeon MIPS: OCTEON: use devm_platform_ioremap_resource 2020-09-18 15:30:41 +02:00
cobalt
configs MIPS: configs: lb60: Fix defconfig not selecting correct board 2020-09-18 16:26:12 +02:00
crypto
dec
fw
generic
include MIPS: cpu-probe: Set Ingenic's writecombine to _CACHE_CACHABLE_WA 2020-09-18 16:26:36 +02:00
jazz
jz4740
kernel MIPS: cpu-probe: ingenic: Fix broken BUG_ON 2020-09-18 16:27:32 +02:00
kvm KVM: MIPS/VZ: Fix build error caused by 'kvm_run' cleanup 2020-08-11 07:19:41 -04:00
lantiq MIPS: lantiq: add missing GPHY clock aliases for ar10 and grx390 2020-08-17 13:01:07 +02:00
lib
loongson2ef
loongson32
loongson64 MIPS: Loongson64: Remove unused loongson_reboot. 2020-09-07 22:17:12 +02:00
math-emu
mm MIPS: Get rid of CAVIUM_OCTEON_DCACHE_PREFETCH_WAR 2020-09-07 22:25:16 +02:00
mti-malta
net
netlogic
oprofile
pci MIPS: pci: use devm_platform_ioremap_resource_byname 2020-09-18 15:29:35 +02:00
pic32
pistachio
power
ralink
rb532
sgi-ip22
sgi-ip27 mm/sparse: cleanup the code surrounding memory_present() 2020-08-07 11:33:27 -07:00
sgi-ip30
sgi-ip32 MIPS: SGI-IP32: No need to include mc14818*.h 2020-08-26 12:23:06 +02:00
sibyte
sni
tools
txx9
vdso Kbuild updates for v5.9 2020-08-09 14:10:26 -07:00
vr41xx
Kbuild
Kbuild.platforms MIPS: Remove PNX833x alias NXP_STB22x 2020-08-24 17:29:28 +02:00
Kconfig MIPS: Convert MIPS34K_MISSED_ITLB_WAR into a config option 2020-09-07 22:24:40 +02:00
Kconfig.debug
Makefile
Makefile.postlink