diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2022-04-02 20:13:55 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2022-04-19 17:42:08 -0700 |
commit | f81f7861ee2aaa6f652f18e8f622547bdd379724 (patch) | |
tree | d7280a72088c45b360cd0934f2a07bba97a7462d /drivers/clk/sunxi | |
parent | 3123109284176b1532874591f7c81f3837bbdc17 (diff) | |
download | linux-stable-f81f7861ee2aaa6f652f18e8f622547bdd379724.tar.gz linux-stable-f81f7861ee2aaa6f652f18e8f622547bdd379724.tar.bz2 linux-stable-f81f7861ee2aaa6f652f18e8f622547bdd379724.zip |
cpuidle: riscv: support non-SMP config
Add <asm/smp.h> for cpuid_to_hartid_map etc.
This is needed for both SMP and non-SMP builds, but not having it
causes a build error for non-SMP:
drivers/cpuidle/cpuidle-riscv-sbi.c: In function 'sbi_cpuidle_init_cpu':
drivers/cpuidle/cpuidle-riscv-sbi.c:350:26: error: implicit declaration of function 'cpuid_to_hartid_map' [-Werror=implicit-function-declaration]
Fixes: 6abf32f1d9c5 ("cpuidle: Add RISC-V SBI CPU idle driver")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'drivers/clk/sunxi')
0 files changed, 0 insertions, 0 deletions