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