[RESEND][PATCH v8 4/8] PM / EM: add support for other devices than CPUs in Energy Model