Home
last modified time | relevance | path

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

/linux-5.19.10/include/trace/events/
Dthermal_power_allocator.h12 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-5.19.10/drivers/thermal/
Dgov_power_allocator.c339 u32 *granted_power, u32 *extra_actor_power) in divvy_up_power() argument
355 granted_power[i] = DIV_ROUND_CLOSEST_ULL(req_range, in divvy_up_power()
358 if (granted_power[i] > max_power[i]) { in divvy_up_power()
359 extra_power += granted_power[i] - max_power[i]; in divvy_up_power()
360 granted_power[i] = max_power[i]; in divvy_up_power()
363 extra_actor_power[i] = max_power[i] - granted_power[i]; in divvy_up_power()
378 granted_power[i] += DIV_ROUND_CLOSEST_ULL(extra_range, in divvy_up_power()
388 u32 *req_power, *max_power, *granted_power, *extra_actor_power; in allocate_power() local
420 BUILD_BUG_ON(sizeof(*req_power) != sizeof(*granted_power)); in allocate_power()
430 granted_power = &req_power[2 * num_actors]; in allocate_power()
[all …]