File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ void arch_send_call_function_ipi_mask(struct cpumask *mask);
42
42
/* Hook for the generic smp_call_function_single() routine. */
43
43
void arch_send_call_function_single_ipi (int cpu );
44
44
45
- int riscv_hartid_to_cpuid (int hartid );
45
+ int riscv_hartid_to_cpuid (unsigned long hartid );
46
46
47
47
/* Set custom IPI operations */
48
48
void riscv_set_ipi_ops (const struct riscv_ipi_ops * ops );
@@ -70,7 +70,7 @@ static inline void show_ipi_stats(struct seq_file *p, int prec)
70
70
{
71
71
}
72
72
73
- static inline int riscv_hartid_to_cpuid (int hartid )
73
+ static inline int riscv_hartid_to_cpuid (unsigned long hartid )
74
74
{
75
75
if (hartid == boot_cpu_hartid )
76
76
return 0 ;
Original file line number Diff line number Diff line change @@ -47,15 +47,15 @@ static struct {
47
47
unsigned long bits ____cacheline_aligned ;
48
48
} ipi_data [NR_CPUS ] __cacheline_aligned ;
49
49
50
- int riscv_hartid_to_cpuid (int hartid )
50
+ int riscv_hartid_to_cpuid (unsigned long hartid )
51
51
{
52
52
int i ;
53
53
54
54
for (i = 0 ; i < NR_CPUS ; i ++ )
55
55
if (cpuid_to_hartid_map (i ) == hartid )
56
56
return i ;
57
57
58
- pr_err ("Couldn't find cpu id for hartid [%d ]\n" , hartid );
58
+ pr_err ("Couldn't find cpu id for hartid [%lu ]\n" , hartid );
59
59
return - ENOENT ;
60
60
}
61
61
You can’t perform that action at this time.
0 commit comments