Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: pm-cps: Remove selection of sync types

Instead of selecting an implementation or vendor specific sync type for
the required sync operations, always use the architecturally mandated
sync types which previous patches have put in place. The selection of
special sync types is now redundant an can be removed.

Signed-off-by: Matt Redfearn <matt.redfearn@imgtec.com>
Reviewed-by: Paul Burton <paul.burton@imgtec.com>
Cc: Adam Buchbinder <adam.buchbinder@gmail.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/14223/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Matt Redfearn and committed by
Ralf Baechle
15ea26cf 90b084b1

-19
-19
arch/mips/kernel/pm-cps.c
··· 73 73 static struct uasm_label labels[32] __initdata; 74 74 static struct uasm_reloc relocs[32] __initdata; 75 75 76 - /* CPU dependant sync types */ 77 - static unsigned stype_intervention; 78 - static unsigned stype_memory; 79 - 80 76 enum mips_reg { 81 77 zero, at, v0, v1, a0, a1, a2, a3, 82 78 t0, t1, t2, t3, t4, t5, t6, t7, ··· 662 666 { 663 667 unsigned cpu; 664 668 int err; 665 - 666 - /* Detect appropriate sync types for the system */ 667 - switch (current_cpu_data.cputype) { 668 - case CPU_INTERAPTIV: 669 - case CPU_PROAPTIV: 670 - case CPU_M5150: 671 - case CPU_P5600: 672 - case CPU_I6400: 673 - stype_intervention = 0x2; 674 - stype_memory = 0x3; 675 - break; 676 - 677 - default: 678 - pr_warn("Power management is using heavyweight sync 0\n"); 679 - } 680 669 681 670 /* A CM is required for all non-coherent states */ 682 671 if (!mips_cm_present()) {