Kefeng Wang
64de608c98
riscv: cacheinfo: Fix using smp_processor_id() in preemptible
...
[ Upstream commit 80709af7325d179b433817f421c85449f2454046 ]
Use raw_smp_processor_id instead of smp_processor_id() to fix warning,
BUG: using smp_processor_id() in preemptible [00000000] code: init/1
caller is debug_smp_processor_id+0x1c/0x26
CPU: 0 PID: 1 Comm: init Not tainted 5.10.0-rc4 #211
Call Trace:
walk_stackframe+0x0/0xaa
show_stack+0x32/0x3e
dump_stack+0x76/0x90
check_preemption_disabled+0xaa/0xac
debug_smp_processor_id+0x1c/0x26
get_cache_size+0x18/0x68
load_elf_binary+0x868/0xece
bprm_execve+0x224/0x498
kernel_execve+0xdc/0x142
run_init_process+0x90/0x9e
try_to_run_init_process+0x12/0x3c
kernel_init+0xb4/0xf8
ret_from_exception+0x0/0xc
The issue is found when CONFIG_DEBUG_PREEMPT enabled.
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Tested-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
[Palmer: Added a comment.]
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-01-27 11:55:00 +01:00
..
2020-11-25 09:44:14 -08:00
2020-03-25 11:50:48 +01:00
2020-07-30 11:37:44 -07:00
2021-01-27 11:55:00 +01:00
2020-03-31 11:28:30 -07:00
2020-03-31 11:25:56 -07:00
2020-10-25 14:51:49 -07:00
2020-03-31 11:28:30 -07:00
2020-06-09 19:11:20 -07:00
2020-05-04 14:08:59 -07:00
2020-10-02 14:31:16 -07:00
2020-10-02 14:31:28 -07:00
2021-01-27 11:54:59 +01:00
2019-11-05 09:20:42 -08:00
2020-11-04 13:28:20 -08:00
2020-10-02 14:30:57 -07:00
2020-11-05 17:32:27 -08:00
2020-10-02 14:31:16 -07:00
2020-06-09 19:11:24 -07:00
2020-07-30 11:37:43 -07:00
2020-07-09 20:09:30 -07:00
2020-10-02 14:31:28 -07:00
2018-04-02 19:59:13 -07:00
2018-10-22 17:38:12 -07:00
2019-10-28 00:46:01 -07:00
2020-07-30 11:37:41 -07:00
2020-06-17 10:57:41 -07:00
2019-11-05 09:20:42 -08:00
2020-05-11 13:48:19 -07:00
2020-11-09 18:12:34 +01:00
2020-11-24 16:47:35 +01:00
2020-07-27 14:31:10 -04:00
2019-11-13 13:22:52 -08:00
2020-01-22 13:09:58 -08:00
2020-08-20 10:55:40 -07:00
2020-11-25 09:44:25 -08:00
2020-10-17 15:04:36 -06:00
2020-08-20 10:58:13 -07:00
2020-08-20 10:58:13 -07:00
2020-06-09 09:39:13 -07:00
2020-06-09 09:39:13 -07:00
2020-06-18 17:28:53 -07:00
2019-10-28 00:46:01 -07:00
2021-01-27 11:54:59 +01:00
2020-04-03 10:45:33 -07:00
2020-07-30 11:37:48 -07:00
2021-01-19 18:27:20 +01:00
2020-10-19 18:18:30 -07:00