Home
last modified time | relevance | path

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

/Linux-v4.19/arch/powerpc/platforms/powernv/
Didle.c728 int nr_idle_states, i; in pnv_parse_cpuidle_dt() local
739 nr_idle_states = of_property_count_u32_elems(np, in pnv_parse_cpuidle_dt()
742 pnv_idle_states = kcalloc(nr_idle_states, sizeof(*pnv_idle_states), in pnv_parse_cpuidle_dt()
744 temp_u32 = kcalloc(nr_idle_states, sizeof(u32), GFP_KERNEL); in pnv_parse_cpuidle_dt()
745 temp_u64 = kcalloc(nr_idle_states, sizeof(u64), GFP_KERNEL); in pnv_parse_cpuidle_dt()
746 temp_string = kcalloc(nr_idle_states, sizeof(char *), GFP_KERNEL); in pnv_parse_cpuidle_dt()
756 temp_u32, nr_idle_states)) { in pnv_parse_cpuidle_dt()
761 for (i = 0; i < nr_idle_states; i++) in pnv_parse_cpuidle_dt()
766 temp_u32, nr_idle_states)) { in pnv_parse_cpuidle_dt()
771 for (i = 0; i < nr_idle_states; i++) in pnv_parse_cpuidle_dt()
[all …]
/Linux-v4.19/drivers/cpuidle/
Dcpuidle-powernv.c267 int nr_idle_states = 1; /* Snooze */ in powernv_add_idle_states() local
332 add_powernv_state(nr_idle_states, "Nap", in powernv_add_idle_states()
336 add_powernv_state(nr_idle_states, state->name, in powernv_add_idle_states()
351 add_powernv_state(nr_idle_states, "FastSleep", in powernv_add_idle_states()
356 add_powernv_state(nr_idle_states, state->name, in powernv_add_idle_states()
365 nr_idle_states++; in powernv_add_idle_states()
368 return nr_idle_states; in powernv_add_idle_states()