Thread (27 messages) 27 messages, 2 authors, 2023-02-27

Re: [PATCH v10 5/9] sched/fair: Take into account latency priority at wakeup

From: Peter Zijlstra <hidden>
Date: 2023-02-21 14:16:14
Also in: lkml

On Tue, Feb 21, 2023 at 01:52:58PM +0100, Peter Zijlstra wrote:
On Fri, Jan 13, 2023 at 03:12:30PM +0100, Vincent Guittot wrote:
quoted
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 6c61bde49152..38decae3e156 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -568,6 +568,8 @@ struct sched_entity {
 	/* cached value of my_q->h_nr_running */
 	unsigned long			runnable_weight;
 #endif
+	/* preemption offset in ns */
+	long				latency_offset;
I wonder about the type here; does it make sense to have it depend on
the bitness; that is if s32 is big enough on 32bit then surely it is so
too on 64bit, and if not, then it should be unconditionally s64.
The cgroup patch has this as 'int'. I'm thinking we ought to be
consistent :-)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help