Thread (17 messages) 17 messages, 3 authors, 2018-06-26

Re: [PATCH V9] powercap/drivers/idle_injection: Add an idle injection framework

From: "Rafael J. Wysocki" <rafael@kernel.org>
Date: 2018-06-25 21:55:21
Also in: lkml

On Mon, Jun 25, 2018 at 1:52 PM, Daniel Lezcano
[off-list ref] wrote:
On 25/06/2018 10:23, Rafael J. Wysocki wrote:

[ ... ]
quoted
quoted
+ * It is up to the user of this framework to provide a lock at an
+ * upper level to prevent stupid things to happen, like starting while
+ * we are unregistering.
+ */
The English above and elsewhere needs some polishing IMO, but I can
take care of that. :-)
I can give a try and if you are still unhappy, you change them in a
better way.
Well, I could tell you what I would write, but then it'll take less
time and effort if I just write it myself. :-)
[ ... ]
quoted
quoted
+static void idle_injection_setup(unsigned int cpu)
+{
+       struct sched_param param = { .sched_priority = MAX_USER_RT_PRIO / 2 };
+
+       set_freezable();
Why do you need set_freezable() here?
We don't want to continue injecting idle cycles when the system is
suspended.
And where's the corresponding try_to_freeze() called?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help