aboutsummaryrefslogtreecommitdiffstats
path: root/arch/xtensa/include/asm/platform.h
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2016-09-07 13:33:47 -0700
committerMax Filippov <jcmvbkbc@gmail.com>2016-09-11 23:53:22 -0700
commit4f2056873ff0748d413c0dc3577186f78fafa7c9 (patch)
tree2c33b1f2f9a2beb5e8b1cdd0c62a7319da3bfee4 /arch/xtensa/include/asm/platform.h
parentxtensa: Added Cadence CSP kernel configuration for Xtensa (diff)
downloadlinux-dev-4f2056873ff0748d413c0dc3577186f78fafa7c9.tar.xz
linux-dev-4f2056873ff0748d413c0dc3577186f78fafa7c9.zip
xtensa: extract common CPU reset code into separate function
platform_restart implementatations do the same thing to reset CPU. Don't duplicate that code, move it to a function and call it from platform_restart. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/include/asm/platform.h')
-rw-r--r--arch/xtensa/include/asm/platform.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/xtensa/include/asm/platform.h b/arch/xtensa/include/asm/platform.h
index 32e98f27ce97..f8fbef67bc5f 100644
--- a/arch/xtensa/include/asm/platform.h
+++ b/arch/xtensa/include/asm/platform.h
@@ -69,4 +69,10 @@ extern int platform_pcibios_fixup (void);
*/
extern void platform_calibrate_ccount (void);
+/*
+ * Flush and reset the mmu, simulate a processor reset, and
+ * jump to the reset vector.
+ */
+void cpu_reset(void) __attribute__((noreturn));
+
#endif /* _XTENSA_PLATFORM_H */