projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f20568
)
xtensa: fix icountlevel setting in cpu_reset
author
Max Filippov
<jcmvbkbc@gmail.com>
Mon, 12 Sep 2016 05:05:32 +0000
(22:05 -0700)
committer
Max Filippov
<jcmvbkbc@gmail.com>
Mon, 12 Sep 2016 06:53:22 +0000
(23:53 -0700)
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>
arch/xtensa/kernel/setup.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/xtensa/kernel/setup.c
b/arch/xtensa/kernel/setup.c
index 868b54fce2ed9143cdc196552ec2ef7cf9788c02..65486b8dfa2b3b11b3b9afb6a3b01a5283f199dc 100644
(file)
--- 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"