Home
last modified time | relevance | path

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

/tools/power/cpupower/utils/idle_monitor/
Dcpuidle_sysfs.c22 static unsigned long long **previous_count; variable
31 - previous_count[cpu][id]; in cpuidle_get_count_percent()
53 previous_count[cpu][state] = in cpuidle_start()
56 cpu, state, previous_count[cpu][state]); in cpuidle_start()
75 cpu, state, previous_count[cpu][state]); in cpuidle_stop()
165 previous_count = malloc(sizeof(long long *) * cpu_count); in cpuidle_register()
168 previous_count[num] = malloc(sizeof(long long) * in cpuidle_register()
183 free(previous_count[num]); in cpuidle_unregister()
186 free(previous_count); in cpuidle_unregister()
Dsnb_idle.c56 static unsigned long long *previous_count[SNB_CSTATE_COUNT]; variable
96 (current_count[id][cpu] - previous_count[id][cpu])) / in snb_get_count_percent()
100 snb_cstates[id].name, previous_count[id][cpu], in snb_get_count_percent()
106 current_count[id][cpu] - previous_count[id][cpu], in snb_get_count_percent()
120 previous_count[num][cpu] = val; in snb_start()
169 previous_count[num] = calloc(cpu_count, in snb_register()
183 free(previous_count[num]); in snb_unregister()
Dhsw_ext_idle.c58 static unsigned long long *previous_count[HSW_EXT_CSTATE_COUNT]; variable
98 (current_count[id][cpu] - previous_count[id][cpu])) / in hsw_ext_get_count_percent()
102 hsw_ext_cstates[id].name, previous_count[id][cpu], in hsw_ext_get_count_percent()
108 current_count[id][cpu] - previous_count[id][cpu], in hsw_ext_get_count_percent()
122 previous_count[num][cpu] = val; in hsw_ext_start()
164 previous_count[num] = calloc(cpu_count, in hsw_ext_register()
178 free(previous_count[num]); in hsw_ext_unregister()
Dnhm_idle.c67 static unsigned long long *previous_count[NHM_CSTATE_COUNT]; variable
111 (current_count[id][cpu] - previous_count[id][cpu])) / in nhm_get_count_percent()
115 nhm_cstates[id].name, previous_count[id][cpu], in nhm_get_count_percent()
121 current_count[id][cpu] - previous_count[id][cpu], in nhm_get_count_percent()
137 previous_count[num][cpu] = val; in nhm_start()
183 previous_count[num] = calloc(cpu_count, in intel_nhm_register()
198 free(previous_count[num]); in intel_nhm_unregister()
Damd_fam14h_idle.c94 static unsigned long long *previous_count[AMD_FAM14H_STATE_NUM]; variable
155 previous_count[state->id][cpu] = 0; in amd_fam14h_init()
187 previous_count[state->id][cpu], cpu); in amd_fam14h_disable()
216 diff = current_count[id][cpu] - previous_count[id][cpu]; in fam14h_get_count_percent()
295 previous_count[num] = calloc(cpu_count, in amd_fam14h_register()
318 free(previous_count[num]); in amd_fam14h_unregister()