kernel: add functions to query the number of available/online CPUs
This commit is contained in:
@@ -39,6 +39,9 @@ extern bool cpu_is_online(unsigned int cpu_id);
|
||||
extern void cpu_set_available(unsigned int cpu_id);
|
||||
extern void cpu_set_online(unsigned int cpu_id);
|
||||
|
||||
extern unsigned int cpu_nr_available(void);
|
||||
extern unsigned int cpu_nr_online(void);
|
||||
|
||||
extern cycles_t get_cycles(void);
|
||||
static inline cycles_t cycles_diff(cycles_t then, cycles_t now)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user