We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2906aa commit 869d40bCopy full SHA for 869d40b
arch/riscv/kernel/cpu_ops_sbi.c
@@ -65,7 +65,7 @@ static int sbi_hsm_hart_get_status(unsigned long hartid)
65
static int sbi_cpu_start(unsigned int cpuid, struct task_struct *tidle)
66
{
67
unsigned long boot_addr = __pa_symbol(secondary_start_sbi);
68
- int hartid = cpuid_to_hartid_map(cpuid);
+ unsigned long hartid = cpuid_to_hartid_map(cpuid);
69
unsigned long hsm_data;
70
struct sbi_hart_boot_data *bdata = &per_cpu(boot_data, cpuid);
71
@@ -107,7 +107,7 @@ static void sbi_cpu_stop(void)
107
static int sbi_cpu_is_stopped(unsigned int cpuid)
108
109
int rc;
110
111
112
rc = sbi_hsm_hart_get_status(hartid);
113
0 commit comments