Searched refs:nr_idle_states (Results 1 – 2 of 2) sorted by relevance
/Linux-v6.6/drivers/cpuidle/ |
D | cpuidle-powernv.c | 253 int nr_idle_states = 1; /* Snooze */ in powernv_add_idle_states() local 318 add_powernv_state(nr_idle_states, "Nap", in powernv_add_idle_states() 322 add_powernv_state(nr_idle_states, state->name, in powernv_add_idle_states() 337 add_powernv_state(nr_idle_states, "FastSleep", in powernv_add_idle_states() 342 add_powernv_state(nr_idle_states, state->name, in powernv_add_idle_states() 351 nr_idle_states++; in powernv_add_idle_states() 354 return nr_idle_states; in powernv_add_idle_states()
|
/Linux-v6.6/arch/powerpc/platforms/powernv/ |
D | idle.c | 1324 int nr_idle_states, i; in pnv_parse_cpuidle_dt() local 1335 nr_idle_states = of_property_count_u32_elems(np, in pnv_parse_cpuidle_dt() 1338 pnv_idle_states = kcalloc(nr_idle_states, sizeof(*pnv_idle_states), in pnv_parse_cpuidle_dt() 1340 temp_u32 = kcalloc(nr_idle_states, sizeof(u32), GFP_KERNEL); in pnv_parse_cpuidle_dt() 1341 temp_u64 = kcalloc(nr_idle_states, sizeof(u64), GFP_KERNEL); in pnv_parse_cpuidle_dt() 1342 temp_string = kcalloc(nr_idle_states, sizeof(char *), GFP_KERNEL); in pnv_parse_cpuidle_dt() 1352 temp_u32, nr_idle_states)) { in pnv_parse_cpuidle_dt() 1357 for (i = 0; i < nr_idle_states; i++) in pnv_parse_cpuidle_dt() 1362 temp_u32, nr_idle_states)) { in pnv_parse_cpuidle_dt() 1367 for (i = 0; i < nr_idle_states; i++) in pnv_parse_cpuidle_dt() [all …]
|