summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/kernel/setup.c
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2016-09-11 22:05:32 -0700
committerMax Filippov <jcmvbkbc@gmail.com>2016-09-11 23:53:22 -0700
commitea951c34ea957d509916f79502917b87cf111b37 (patch)
tree2383730a838fe437d1a9d8e152f72348d9672fdd /arch/xtensa/kernel/setup.c
parent4f2056873ff0748d413c0dc3577186f78fafa7c9 (diff)
downloadtalos-obmc-linux-ea951c34ea957d509916f79502917b87cf111b37.tar.gz
talos-obmc-linux-ea951c34ea957d509916f79502917b87cf111b37.zip
xtensa: fix icountlevel setting in cpu_reset
icountlevel SR value specifies lowest intlevel that does not do instruction counting, so to disable instruction counting completely it must be set to 0, not to 15. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/kernel/setup.c')
-rw-r--r--arch/xtensa/kernel/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/xtensa/kernel/setup.c b/arch/xtensa/kernel/setup.c
index 868b54fce2ed..65486b8dfa2b 100644
--- a/arch/xtensa/kernel/setup.c
+++ b/arch/xtensa/kernel/setup.c
@@ -551,7 +551,7 @@ subsys_initcall(topology_init);
void cpu_reset(void)
{
- __asm__ __volatile__ ("movi a2, 15\n\t"
+ __asm__ __volatile__ ("movi a2, 0\n\t"
"wsr a2, icountlevel\n\t"
"movi a2, 0\n\t"
"wsr a2, icount\n\t"
OpenPOWER on IntegriCloud