Searched refs:num_actors (Results 1 - 2 of 2) sorted by relevance
/linux-4.4.14/include/trace/events/ |
H A D | thermal_power_allocator.h | 12 u32 total_granted_power, size_t num_actors, 16 total_granted_power, num_actors, power_range, 20 __dynamic_array(u32, req_power, num_actors ) 22 __dynamic_array(u32, granted_power, num_actors) 24 __field(size_t, num_actors ) 33 num_actors * sizeof(*req_power)); 36 num_actors * sizeof(*granted_power)); 38 __entry->num_actors = num_actors; 48 __entry->num_actors, 4), 51 __entry->num_actors, 4),
|
/linux-4.4.14/drivers/thermal/ |
H A D | power_allocator.c | 265 * @num_actors: size of the @req_power, @max_power and @granted_power's array 288 static void divvy_up_power(u32 *req_power, u32 *max_power, int num_actors, divvy_up_power() argument 303 for (i = 0; i < num_actors; i++) { divvy_up_power() 327 for (i = 0; i < num_actors; i++) divvy_up_power() 341 int i, num_actors, total_weight, ret = 0; allocate_power() local 346 num_actors = 0; allocate_power() 351 num_actors++; allocate_power() 356 if (!num_actors) { allocate_power() 372 req_power = kcalloc(num_actors * 5, sizeof(*req_power), GFP_KERNEL); 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() 420 divvy_up_power(weighted_req_power, max_power, num_actors, allocate_power() 442 num_actors, power_range, allocate_power()
|
Completed in 60 milliseconds