Skip to content
Commit 78e87c40 authored by Lukasz Luba's avatar Lukasz Luba Committed by Deepak Kumar Mishra
Browse files

PM: EM: Check if the get_cost() callback is present



The em_compute_cost() is going to be re-used in runtime modified EM
code path. Thus, make sure that this common code is safe and won't
try to use the NULL pointer. The former em_compute_cost() didn't have to
care about runtime modification call with. The upcoming changes introduce
such option, with different callback. Those two paths needs to be safely
handled.

Signed-off-by: Lukasz Luba's avatarLukasz Luba <lukasz.luba@arm.com>
parent 816a6a3d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment