lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20230123042729.30268-1-dave@stgolabs.net>
Date:   Sun, 22 Jan 2023 20:27:29 -0800
From:   Davidlohr Bueso <dave@...olabs.net>
To:     tglx@...utronix.de
Cc:     bigeasy@...utronix.de, dave@...olabs.net,
        linux-rt-users@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] sched/rt: Add a comment for the existence of task_is_realtime()

... such that users don't wonder about it when we have rt_task().

Signed-off-by: Davidlohr Bueso <dave@...olabs.net>
---
 include/linux/sched/rt.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/linux/sched/rt.h b/include/linux/sched/rt.h
index 994c25640e15..7a5003c2cf2a 100644
--- a/include/linux/sched/rt.h
+++ b/include/linux/sched/rt.h
@@ -18,6 +18,12 @@ static inline int rt_task(struct task_struct *p)
 	return rt_prio(p->prio);
 }
 
+/*
+ * Returns true if a task has elevated priority which is the case
+ * for RT tasks (SCHED_RR and SCHED_FIFO) as well as SCHED_DEADLINE.
+ * A task which runs at RT priority due to PI-boosting is not
+ * considered as one with elevated priority.
+ */
 static inline bool task_is_realtime(struct task_struct *tsk)
 {
 	int policy = tsk->policy;
-- 
2.39.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ