This series cleans up duplication between platforms in the area of machine halt, restart & power off callbacks. First it adapts the generic code path to provide a suitably generic version of functionality currently duplicated by many platforms, then it removes those custom implementations from platforms such that they make use of the generic code. Applies atop v4.13-rc6. Paul Burton (2): MIPS: Hang more efficiently on halt/powerdown/restart MIPS: Remove custom implementations CPU hang implementations arch/mips/alchemy/board-gpr.c | 8 ---- arch/mips/alchemy/board-mtx1.c | 11 ------ arch/mips/alchemy/board-xxs1500.c | 11 ------ arch/mips/alchemy/devboards/platform.c | 2 - arch/mips/ar7/setup.c | 8 ---- arch/mips/ath25/board.c | 9 ----- arch/mips/ath79/setup.c | 9 ----- arch/mips/bcm47xx/setup.c | 4 -- arch/mips/bcm63xx/setup.c | 9 ----- arch/mips/cobalt/reset.c | 4 -- arch/mips/emma/markeins/setup.c | 2 - arch/mips/jz4740/reset.c | 13 ------- arch/mips/kernel/reset.c | 68 +++++++++++++++++++++++++++++++--- arch/mips/lantiq/falcon/reset.c | 14 ------- arch/mips/lantiq/xway/reset.c | 14 ------- arch/mips/lasat/reset.c | 1 - arch/mips/loongson32/common/reset.c | 17 --------- arch/mips/loongson64/common/reset.c | 18 --------- arch/mips/netlogic/xlp/setup.c | 2 - arch/mips/netlogic/xlr/setup.c | 2 - arch/mips/pic32/common/reset.c | 22 ----------- arch/mips/pmcs-msp71xx/msp_setup.c | 18 --------- arch/mips/pnx833x/common/reset.c | 12 ------ arch/mips/pnx833x/common/setup.c | 4 -- arch/mips/ralink/reset.c | 7 ---- arch/mips/rb532/setup.c | 8 ---- arch/mips/sgi-ip22/ip22-reset.c | 1 - arch/mips/txx9/generic/setup.c | 24 ------------ arch/mips/vr41xx/common/pmu.c | 1 - 29 files changed, 62 insertions(+), 261 deletions(-) -- 2.14.1