Home
last modified time | relevance | path

Searched refs:original_cpumask (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/samples/bpf/
H A Dcpustat_user.c110 cpu_set_t original_cpumask; in cpu_stat_inject_cpu_idle_event() local
121 sched_getaffinity(0, sizeof(original_cpumask), &original_cpumask); in cpu_stat_inject_cpu_idle_event()
130 if (!CPU_ISSET(i, &original_cpumask)) in cpu_stat_inject_cpu_idle_event()
140 sched_setaffinity(0, sizeof(original_cpumask), &original_cpumask); in cpu_stat_inject_cpu_idle_event()