xtensa: extract common CPU reset code into separate function
authorMax Filippov <jcmvbkbc@gmail.com>
Wed, 7 Sep 2016 20:33:47 +0000 (13:33 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Mon, 12 Sep 2016 06:53:22 +0000 (23:53 -0700)
commit4f2056873ff0748d413c0dc3577186f78fafa7c9
tree2c33b1f2f9a2beb5e8b1cdd0c62a7319da3bfee4
parent23c2b9321b30f947b4f908e40379eed50f48508c
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>
arch/xtensa/include/asm/platform.h
arch/xtensa/kernel/setup.c
arch/xtensa/platforms/iss/setup.c
arch/xtensa/platforms/xt2000/setup.c
arch/xtensa/platforms/xtfpga/setup.c