Searched refs:granted_power (Results 1 – 2 of 2) sorted by relevance
/Linux-v4.19/include/trace/events/ |
D | thermal_power_allocator.h | 12 u32 total_req_power, u32 *granted_power, 16 TP_ARGS(tz, req_power, total_req_power, granted_power, 23 __dynamic_array(u32, granted_power, num_actors) 36 memcpy(__get_dynamic_array(granted_power), granted_power, 37 num_actors * sizeof(*granted_power)); 51 __print_array(__get_dynamic_array(granted_power),
|
/Linux-v4.19/drivers/thermal/ |
D | power_allocator.c | 290 u32 *granted_power, u32 *extra_actor_power) in divvy_up_power() argument 306 granted_power[i] = DIV_ROUND_CLOSEST_ULL(req_range, in divvy_up_power() 309 if (granted_power[i] > max_power[i]) { in divvy_up_power() 310 extra_power += granted_power[i] - max_power[i]; in divvy_up_power() 311 granted_power[i] = max_power[i]; in divvy_up_power() 314 extra_actor_power[i] = max_power[i] - granted_power[i]; in divvy_up_power() 328 granted_power[i] += (extra_actor_power[i] * in divvy_up_power() 337 u32 *req_power, *max_power, *granted_power, *extra_actor_power; in allocate_power() local 369 BUILD_BUG_ON(sizeof(*req_power) != sizeof(*granted_power)); in allocate_power() 379 granted_power = &req_power[2 * num_actors]; in allocate_power() [all …]
|