Thread (23 messages) 23 messages, 4 authors, 2020-01-22

Re: [PATCH 1/4] PM / EM: and devices to Energy Model

From: Lukasz Luba <lukasz.luba@arm.com>
Date: 2020-01-20 15:37:00
Also in: dri-devel, linux-arm-msm, linux-mediatek, linux-omap, linux-pm, lkml


On 1/20/20 3:11 PM, Dietmar Eggemann wrote:
On 20/01/2020 15:53, Dietmar Eggemann wrote:
quoted
On 16/01/2020 16:20, lukasz.luba@arm.com wrote:
quoted
From: Lukasz Luba <lukasz.luba@arm.com>
[...]
quoted
quoted
+enum em_type {
+	EM_SIMPLE,
+	EM_CPU,
+};
s/EM_SIMPLE/EM_DEV ?

Right now I only see energy models and _one_ specific type (the CPU EM).
So a tag 'is a CPU EM' would suffice. No need for EM_SIMPE ...
Wait, you even have

struct em_device {
         struct em_perf_domain *em_pd;
         struct device *dev;
         ...
}

static bool _is_cpu_device(struct device *dev)

Shouldn't this be enough to distinguish between EM and special CPU EM
under the API? Even when required to use container_of() to get from
em_perf_domain to device.
Agree, I will remove this em_type related code.

Lukasz

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help