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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <48864843.6030808@gmail.com>
Date:	Tue, 22 Jul 2008 16:51:15 -0400
From:	roel kluin <roel.kluin@...il.com>
To:	Peter Zijlstra <a.p.zijlstra@...llo.nl>
CC:	mingo@...e.hu, rml@...h9.net, linux-kernel@...r.kernel.org
Subject: [PATCH] sched: Test runtime rather than period in global_rt_runtime()

Peter Zijlstra wrote:
> On Mon, 2008-07-21 at 20:28 -0400, roel kluin wrote:
>> Peter, you added the test in global_rt_runtime(), in commit
>> d0b27fa77854b149ad4af08b0fe47fe712a47ade
>> could you take a look at it and tell whether this test should
>> be replaced by something else?

>> -	if (sysctl_sched_rt_period < 0)

> Gah, I'm a moron. That should read:
> 
>   if (sysctl_sched_rt_runtime < 0)
---
Test runtime rather than period

Signed-off-by: Roel Kluin <roel.kluin@...il.com>
---
diff --git a/kernel/sched.c b/kernel/sched.c
index 99e6d85..a73c783 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -832,7 +832,7 @@ static inline u64 global_rt_period(void)
 
 static inline u64 global_rt_runtime(void)
 {
-	if (sysctl_sched_rt_period < 0)
+	if (sysctl_sched_rt_runtime < 0)
 		return RUNTIME_INF;
 
 	return (u64)sysctl_sched_rt_runtime * NSEC_PER_USEC;

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ