[PATCH 6.12 047/512] PM: EM: Fix potential division-by-zero error in em_compute_costs()