Home
last modified time | relevance | path

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

/drivers/thermal/
Dpower_allocator.c288 static void divvy_up_power(u32 *req_power, u32 *max_power, int num_actors, in divvy_up_power() argument
304 u64 req_range = (u64)req_power[i] * power_range; in divvy_up_power()
337 u32 *req_power, *max_power, *granted_power, *extra_actor_power; in allocate_power() local
368 BUILD_BUG_ON(sizeof(*req_power) != sizeof(*max_power)); in allocate_power()
369 BUILD_BUG_ON(sizeof(*req_power) != sizeof(*granted_power)); in allocate_power()
370 BUILD_BUG_ON(sizeof(*req_power) != sizeof(*extra_actor_power)); in allocate_power()
371 BUILD_BUG_ON(sizeof(*req_power) != sizeof(*weighted_req_power)); in allocate_power()
372 req_power = kcalloc(num_actors * 5, sizeof(*req_power), GFP_KERNEL); in allocate_power()
373 if (!req_power) { in allocate_power()
378 max_power = &req_power[num_actors]; in allocate_power()
[all …]