|
8 | 8 | #define _ASM_RISCV_SBI_H
|
9 | 9 |
|
10 | 10 | #include <linux/types.h>
|
| 11 | +#include <linux/cpumask.h> |
11 | 12 |
|
12 | 13 | #ifdef CONFIG_RISCV_SBI
|
13 | 14 | enum sbi_ext_id {
|
@@ -128,27 +129,27 @@ long sbi_get_mimpid(void);
|
128 | 129 | void sbi_set_timer(uint64_t stime_value);
|
129 | 130 | void sbi_shutdown(void);
|
130 | 131 | void sbi_clear_ipi(void);
|
131 |
| -int sbi_send_ipi(const unsigned long *hart_mask); |
132 |
| -int sbi_remote_fence_i(const unsigned long *hart_mask); |
133 |
| -int sbi_remote_sfence_vma(const unsigned long *hart_mask, |
| 132 | +int sbi_send_ipi(const struct cpumask *cpu_mask); |
| 133 | +int sbi_remote_fence_i(const struct cpumask *cpu_mask); |
| 134 | +int sbi_remote_sfence_vma(const struct cpumask *cpu_mask, |
134 | 135 | unsigned long start,
|
135 | 136 | unsigned long size);
|
136 | 137 |
|
137 |
| -int sbi_remote_sfence_vma_asid(const unsigned long *hart_mask, |
| 138 | +int sbi_remote_sfence_vma_asid(const struct cpumask *cpu_mask, |
138 | 139 | unsigned long start,
|
139 | 140 | unsigned long size,
|
140 | 141 | unsigned long asid);
|
141 |
| -int sbi_remote_hfence_gvma(const unsigned long *hart_mask, |
| 142 | +int sbi_remote_hfence_gvma(const struct cpumask *cpu_mask, |
142 | 143 | unsigned long start,
|
143 | 144 | unsigned long size);
|
144 |
| -int sbi_remote_hfence_gvma_vmid(const unsigned long *hart_mask, |
| 145 | +int sbi_remote_hfence_gvma_vmid(const struct cpumask *cpu_mask, |
145 | 146 | unsigned long start,
|
146 | 147 | unsigned long size,
|
147 | 148 | unsigned long vmid);
|
148 |
| -int sbi_remote_hfence_vvma(const unsigned long *hart_mask, |
| 149 | +int sbi_remote_hfence_vvma(const struct cpumask *cpu_mask, |
149 | 150 | unsigned long start,
|
150 | 151 | unsigned long size);
|
151 |
| -int sbi_remote_hfence_vvma_asid(const unsigned long *hart_mask, |
| 152 | +int sbi_remote_hfence_vvma_asid(const struct cpumask *cpu_mask, |
152 | 153 | unsigned long start,
|
153 | 154 | unsigned long size,
|
154 | 155 | unsigned long asid);
|
@@ -183,7 +184,7 @@ static inline unsigned long sbi_mk_version(unsigned long major,
|
183 | 184 |
|
184 | 185 | int sbi_err_map_linux_errno(int err);
|
185 | 186 | #else /* CONFIG_RISCV_SBI */
|
186 |
| -static inline int sbi_remote_fence_i(const unsigned long *hart_mask) { return -1; } |
| 187 | +static inline int sbi_remote_fence_i(const struct cpumask *cpu_mask) { return -1; } |
187 | 188 | static inline void sbi_init(void) {}
|
188 | 189 | #endif /* CONFIG_RISCV_SBI */
|
189 | 190 | #endif /* _ASM_RISCV_SBI_H */
|
0 commit comments