Searched refs:root_zone (Results 1 – 3 of 3) sorted by relevance
57 struct powercap_zone *root_zone; in powercap_show() local77 root_zone = powercap_init_zones(); in powercap_show()79 if (root_zone == NULL) { in powercap_show()84 powercap_walk_zones(root_zone, powercap_print_one_zone); in powercap_show()
265 struct powercap_zone *root_zone; in powercap_init_zones() local277 root_zone = calloc(1, sizeof(struct powercap_zone)); in powercap_init_zones()278 if (!root_zone) in powercap_init_zones()281 strcpy(root_zone->sys_name, "intel-rapl/intel-rapl:0"); in powercap_init_zones()283 powercap_read_zone(root_zone); in powercap_init_zones()285 return root_zone; in powercap_init_zones()
104 struct powercap_zone *root_zone; in rapl_register() local124 root_zone = powercap_init_zones(); in rapl_register()126 if (root_zone == NULL) { in rapl_register()131 powercap_walk_zones(root_zone, powercap_count_zones); in rapl_register()