xref: /kvm-unit-tests/lib/on-cpus.h (revision b2d54669c9111da6dfbcacd83ebcda96fd26e413)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #ifndef _ON_CPUS_H_
3 #define _ON_CPUS_H_
4 #include <stdbool.h>
5 
6 extern bool cpu0_calls_idle;
7 
8 void do_idle(void);
9 
10 void on_cpu_async(int cpu, void (*func)(void *data), void *data);
11 void on_cpu(int cpu, void (*func)(void *data), void *data);
12 void on_cpus(void (*func)(void *data), void *data);
13 
14 #endif /* _ON_CPUS_H_ */
15