kernel_optimize_test/arch
James Hogan d825c06bfe MIPS: smp.c: Fix uninitialised temp_foreign_map
When calculate_cpu_foreign_map() recalculates the cpu_foreign_map
cpumask it uses the local variable temp_foreign_map without initialising
it to zero. Since the calculation only ever sets bits in this cpumask
any existing bits at that memory location will remain set and find their
way into cpu_foreign_map too. This could potentially lead to cache
operations suboptimally doing smp calls to multiple VPEs in the same
core, even though the VPEs share primary caches.

Therefore initialise temp_foreign_map using cpumask_clear() before use.

Fixes: cccf34e941 ("MIPS: c-r4k: Fix cache flushing for MT cores")
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/12759/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2016-03-13 10:59:19 +01:00
..
alpha
arc arc: SMP: CONFIG_ARC_IPI_DBG cleanup 2016-02-24 14:15:39 +05:30
arm ARM: SoC fixes 2016-03-06 14:14:54 -08:00
arm64 arm64 fix: 2016-03-04 17:43:40 -08:00
avr32
blackfin
c6x
cris Merge branch 'akpm' (patches from Andrew) 2016-01-21 12:32:08 -08:00
frv
h8300 Merge branch 'akpm' (patches from Andrew) 2016-01-21 12:32:08 -08:00
hexagon
ia64 [IA64] Enable copy_file_range syscall for ia64 2016-01-22 14:20:01 -08:00
m32r m32r: fix build failure due to SMP and MMU 2016-02-05 18:10:40 -08:00
m68k m68k/defconfig: Update defconfigs for v4.5-rc1 2016-02-01 10:35:38 +01:00
metag
microblaze
mips MIPS: smp.c: Fix uninitialised temp_foreign_map 2016-03-13 10:59:19 +01:00
mn10300
nios2
openrisc
parisc parisc: Wire up copy_file_range syscall 2016-03-01 23:21:11 +01:00
powerpc powerpc fixes for 4.5 #4 2016-03-06 11:08:06 -08:00
s390 s390/fpu: signals vs. floating point control register 2016-02-22 09:29:35 +01:00
score
sh sh: fix smp_store_mb for !SMP 2016-01-26 10:18:29 +02:00
sparc Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc 2016-03-01 08:57:34 -08:00
tile
um um: Export pm_power_off 2016-03-05 22:17:52 +01:00
unicore32
x86 Merge branch 'for-linus-4.5-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml 2016-03-06 11:19:28 -08:00
xtensa
.gitignore
Kconfig