Searched refs:req_power (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/include/trace/events/
H A Dthermal_power_allocator.h10 TP_PROTO(struct thermal_zone_device *tz, u32 *req_power,
15 TP_ARGS(tz, req_power, total_req_power, granted_power,
20 __dynamic_array(u32, req_power, num_actors )
32 memcpy(__get_dynamic_array(req_power), req_power,
33 num_actors * sizeof(*req_power));
45 TP_printk("thermal_zone_id=%d req_power={%s} total_req_power=%u granted_power={%s} total_granted_power=%u power_range=%u max_allocatable_power=%u current_temperature=%d delta_temperature=%d",
47 __print_array(__get_dynamic_array(req_power),
/linux-4.4.14/drivers/thermal/
H A Dpower_allocator.c263 * @req_power: each actor's requested power
265 * @num_actors: size of the @req_power, @max_power and @granted_power's array
266 * @total_req_power: sum of @req_power
288 static void divvy_up_power(u32 *req_power, u32 *max_power, int num_actors, divvy_up_power() argument
304 u64 req_range = req_power[i] * power_range; divvy_up_power()
337 u32 *req_power, *max_power, *granted_power, *extra_actor_power; allocate_power() local
363 * req_power, max_power, granted_power, extra_actor_power and allocate_power()
368 BUILD_BUG_ON(sizeof(*req_power) != sizeof(*max_power)); allocate_power()
369 BUILD_BUG_ON(sizeof(*req_power) != sizeof(*granted_power)); allocate_power()
370 BUILD_BUG_ON(sizeof(*req_power) != sizeof(*extra_actor_power)); allocate_power()
371 BUILD_BUG_ON(sizeof(*req_power) != sizeof(*weighted_req_power)); allocate_power()
372 req_power = kcalloc(num_actors * 5, sizeof(*req_power), GFP_KERNEL); allocate_power()
373 if (!req_power) { allocate_power()
378 max_power = &req_power[num_actors]; allocate_power()
379 granted_power = &req_power[2 * num_actors]; allocate_power()
380 extra_actor_power = &req_power[3 * num_actors]; allocate_power()
381 weighted_req_power = &req_power[4 * num_actors]; allocate_power()
398 if (cdev->ops->get_requested_power(cdev, tz, &req_power[i])) allocate_power()
406 weighted_req_power[i] = frac_to_int(weight * req_power[i]); allocate_power()
411 total_req_power += req_power[i]; allocate_power()
440 trace_thermal_power_allocator(tz, req_power, total_req_power, allocate_power()
446 kfree(req_power); allocate_power()

Completed in 104 milliseconds