Lines Matching defs:orig_cpus
29 if (context->orig_cpus)
30 return context->orig_cpus;
32 context->orig_cpus = tracefs_instance_file_read(NULL, "osnoise/cpus", NULL);
38 return context->orig_cpus;
50 char *orig_cpus = osnoise_get_cpus(context);
54 if (!orig_cpus)
63 debug_msg("setting cpus to %s from %s", cpus, context->orig_cpus);
86 if (!context->orig_cpus)
93 if (!strcmp(context->orig_cpus, context->curr_cpus))
96 debug_msg("restoring cpus to %s", context->orig_cpus);
98 retval = tracefs_instance_file_write(NULL, "osnoise/cpus", context->orig_cpus);
114 if (!context->orig_cpus)
117 free(context->orig_cpus);
118 context->orig_cpus = NULL;