* [PATCH] 2.6.25.4-rt6: missing global_rt_runtime() in sched.c
@ 2008-06-09 9:51 ` ciaby
0 siblings, 0 replies; 10+ messages in thread
From: ciaby @ 2008-06-09 9:51 UTC (permalink / raw)
To: rostedt; +Cc: linux-kernel, linux-rt-users
I already sent this patch, but seems that nobody cared... the last 2
revisions of the -rt kernel don't compile properly.
Second patch to fix this.
Regards
Giovanni "ciaby" Civardi
diff -uNr linux-2.6.25.4-rt6.orig/kernel/sched.c
linux-2.6.25.4-rt6/kernel/sched.c
--- linux-2.6.25.4-rt6.orig/kernel/sched.c 2008-06-09
11:35:57.000000000 +0200
+++ linux-2.6.25.4-rt6/kernel/sched.c 2008-06-09 11:40:45.000000000 +0200
@@ -672,6 +672,13 @@
*/
#define RUNTIME_INF ((u64)~0ULL)
+static u64 global_rt_runtime(void)
+{
+ if (sysctl_sched_rt_period < 0)
+ return RUNTIME_INF;
+ return (u64)sysctl_sched_rt_runtime * NSEC_PER_USEC;
+}
+
/*
* We really dont want to do anything complex within switch_to()
* on PREEMPT_RT - this check enforces this.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH] 2.6.25.4-rt6: missing global_rt_runtime() in sched.c
@ 2008-06-09 9:51 ` ciaby
0 siblings, 0 replies; 10+ messages in thread
From: ciaby @ 2008-06-09 9:51 UTC (permalink / raw)
To: rostedt; +Cc: linux-kernel, linux-rt-users
I already sent this patch, but seems that nobody cared... the last 2
revisions of the -rt kernel don't compile properly.
Second patch to fix this.
Regards
Giovanni "ciaby" Civardi
diff -uNr linux-2.6.25.4-rt6.orig/kernel/sched.c
linux-2.6.25.4-rt6/kernel/sched.c
--- linux-2.6.25.4-rt6.orig/kernel/sched.c 2008-06-09
11:35:57.000000000 +0200
+++ linux-2.6.25.4-rt6/kernel/sched.c 2008-06-09 11:40:45.000000000 +0200
@@ -672,6 +672,13 @@
*/
#define RUNTIME_INF ((u64)~0ULL)
+static u64 global_rt_runtime(void)
+{
+ if (sysctl_sched_rt_period < 0)
+ return RUNTIME_INF;
+ return (u64)sysctl_sched_rt_runtime * NSEC_PER_USEC;
+}
+
/*
* We really dont want to do anything complex within switch_to()
* on PREEMPT_RT - this check enforces this.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] 2.6.25.4-rt6: missing global_rt_runtime() in sched.c
[not found] ` <a3d4028e0806090255x7301df1kd2c0fbc9d1e678c1@mail.gmail.com>
@ 2008-06-09 10:08 ` ciaby
0 siblings, 0 replies; 10+ messages in thread
From: ciaby @ 2008-06-09 10:08 UTC (permalink / raw)
To: Javier Sanz; +Cc: linux-rt-users
Probably because you don't use Group Scheduling:
--
#ifdef CONFIG_RT_GROUP_SCHED
init_task_group.rt_runtime = global_rt_runtime();
INIT_LIST_HEAD(&rq->leaf_rt_rq_list);
init_tg_rt_entry(rq, &init_task_group,
&per_cpu(init_rt_rq, i),
&per_cpu(init_sched_rt_entity, i), i, 1);
#endif
--
If you enable it, it tries to initialize the init_task_group.rt_runtime,
but the global_rt_runtime() function has been lost somewhere between -rt3
and -rt4. I sent the patch again, i hope is gonna be in the next -rt
release.
Cheers
Giovanni "ciaby" Civardi
On Mon, 9 Jun 2008 11:55:49 +0200, "Javier Sanz" <jsanza@gmail.com> wrote:
> Umm,
>
> I think that -rt6 compile ok without you patch, for me, at least ...
>
> Regards
>
> J
>
>
> 2008/6/9 ciaby <ciaby@autistici.org>:
>
>>
>> I already sent this patch, but seems that nobody cared... the last 2
>>
>> revisions of the -rt kernel don't compile properly.
>>
>> Second patch to fix this.
>>
>> Regards
>>
>>
>>
>> Giovanni "ciaby" Civardi
>>
>>
>>
>> diff -uNr linux-2.6.25.4-rt6.orig/kernel/sched.c
>>
>> linux-2.6.25.4-rt6/kernel/sched.c
>>
>> --- linux-2.6.25.4-rt6.orig/kernel/sched.c 2008-06-09
>>
>> 11:35:57.000000000 +0200
>>
>> +++ linux-2.6.25.4-rt6/kernel/sched.c 2008-06-09 11:40:45.000000000
> +0200
>>
>> @@ -672,6 +672,13 @@
>>
>> */
>>
>> #define RUNTIME_INF ((u64)~0ULL)
>>
>>
>>
>> +static u64 global_rt_runtime(void)
>>
>> +{
>>
>> + if (sysctl_sched_rt_period < 0)
>>
>> + return RUNTIME_INF;
>>
>> + return (u64)sysctl_sched_rt_runtime * NSEC_PER_USEC;
>>
>> +}
>>
>> +
>>
>> /*
>>
>> * We really dont want to do anything complex within switch_to()
>>
>> * on PREEMPT_RT - this check enforces this.
>>
>>
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe
> linux-rt-users"
>> in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] 2.6.25.4-rt6: missing global_rt_runtime() in sched.c
2008-06-09 9:51 ` ciaby
(?)
(?)
@ 2008-06-09 12:54 ` Tarkan Erimer
-1 siblings, 0 replies; 10+ messages in thread
From: Tarkan Erimer @ 2008-06-09 12:54 UTC (permalink / raw)
To: ciaby; +Cc: rostedt, linux-kernel, linux-rt-users
ciaby wrote:
> I already sent this patch, but seems that nobody cared... the last 2
> revisions of the -rt kernel don't compile properly.
> Second patch to fix this.
> Regards
>
> Giovanni "ciaby" Civardi
>
Thanks for the patch. It worked perfectly for me.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] 2.6.25.4-rt6: missing global_rt_runtime() in sched.c
2008-06-09 9:51 ` ciaby
` (2 preceding siblings ...)
(?)
@ 2008-06-09 18:02 ` Daniel Walker
-1 siblings, 0 replies; 10+ messages in thread
From: Daniel Walker @ 2008-06-09 18:02 UTC (permalink / raw)
To: ciaby; +Cc: rostedt, linux-kernel, linux-rt-users
On Mon, 2008-06-09 at 09:51 +0000, ciaby wrote:
> I already sent this patch, but seems that nobody cared... the last 2
> revisions of the -rt kernel don't compile properly.
> Second patch to fix this.
> Regards
>
> Giovanni "ciaby" Civardi
>
> diff -uNr linux-2.6.25.4-rt6.orig/kernel/sched.c
> linux-2.6.25.4-rt6/kernel/sched.c
> --- linux-2.6.25.4-rt6.orig/kernel/sched.c 2008-06-09
> 11:35:57.000000000 +0200
> +++ linux-2.6.25.4-rt6/kernel/sched.c 2008-06-09 11:40:45.000000000 +0200
> @@ -672,6 +672,13 @@
> */
> #define RUNTIME_INF ((u64)~0ULL)
>
> +static u64 global_rt_runtime(void)
> +{
> + if (sysctl_sched_rt_period < 0)
> + return RUNTIME_INF;
> + return (u64)sysctl_sched_rt_runtime * NSEC_PER_USEC;
Your patch has a couple of problems .. It's line wrapped, it's missing
proper tabbing (got stripped maybe), and no Signed-off-by: ..
Daniel
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH] 2.6.25.4-rt6: missing global_rt_runtime() in sched.c
2008-06-09 9:51 ` ciaby
@ 2008-06-13 10:07 ` ciaby
-1 siblings, 0 replies; 10+ messages in thread
From: ciaby @ 2008-06-13 10:07 UTC (permalink / raw)
To: linux-kernel; +Cc: rostedt, linux-kernel, linux-rt-users
Not-line-wrapped, with proper tabs :)
Cheers
Giovanni 'ciaby' Civardi
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH] 2.6.25.4-rt6: missing global_rt_runtime() in sched.c
@ 2008-06-13 10:07 ` ciaby
0 siblings, 0 replies; 10+ messages in thread
From: ciaby @ 2008-06-13 10:07 UTC (permalink / raw)
To: linux-kernel; +Cc: rostedt, linux-kernel, linux-rt-users
Not-line-wrapped, with proper tabs :)
Cheers
Giovanni 'ciaby' Civardi
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] 2.6.25.4-rt6: missing global_rt_runtime() in sched.c
2008-06-13 10:07 ` ciaby
(?)
@ 2008-06-13 19:23 ` Daniel Walker
-1 siblings, 0 replies; 10+ messages in thread
From: Daniel Walker @ 2008-06-13 19:23 UTC (permalink / raw)
To: ciaby; +Cc: linux-kernel, rostedt, linux-rt-users
On Fri, 2008-06-13 at 10:07 +0000, ciaby wrote:
> Not-line-wrapped, with proper tabs :)
> Cheers
>
> Giovanni 'ciaby' Civardi
No patch tho included here tho ..
Daniel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] 2.6.25.4-rt6: missing global_rt_runtime() in sched.c
2008-06-09 9:51 ` ciaby
` (4 preceding siblings ...)
(?)
@ 2008-06-23 22:43 ` Steven Rostedt
2008-06-24 1:30 ` Steven Rostedt
-1 siblings, 1 reply; 10+ messages in thread
From: Steven Rostedt @ 2008-06-23 22:43 UTC (permalink / raw)
To: ciaby; +Cc: linux-kernel, linux-rt-users
On Mon, 9 Jun 2008, ciaby wrote:
>
>
> I already sent this patch, but seems that nobody cared... the last 2
> revisions of the -rt kernel don't compile properly.
> Second patch to fix this.
> Regards
I still don't have a "Signed-off-by:" for this patch. Please send it to me
ASAP, otherwise it will miss the next release.
-- Steve
>
> Giovanni "ciaby" Civardi
>
> diff -uNr linux-2.6.25.4-rt6.orig/kernel/sched.c
> linux-2.6.25.4-rt6/kernel/sched.c
> --- linux-2.6.25.4-rt6.orig/kernel/sched.c 2008-06-09
> 11:35:57.000000000 +0200
> +++ linux-2.6.25.4-rt6/kernel/sched.c 2008-06-09 11:40:45.000000000 +0200
> @@ -672,6 +672,13 @@
> */
> #define RUNTIME_INF ((u64)~0ULL)
>
> +static u64 global_rt_runtime(void)
> +{
> + if (sysctl_sched_rt_period < 0)
> + return RUNTIME_INF;
> + return (u64)sysctl_sched_rt_runtime * NSEC_PER_USEC;
> +}
> +
> /*
> * We really dont want to do anything complex within switch_to()
> * on PREEMPT_RT - this check enforces this.
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] 2.6.25.4-rt6: missing global_rt_runtime() in sched.c
2008-06-23 22:43 ` Steven Rostedt
@ 2008-06-24 1:30 ` Steven Rostedt
0 siblings, 0 replies; 10+ messages in thread
From: Steven Rostedt @ 2008-06-24 1:30 UTC (permalink / raw)
To: ciaby; +Cc: linux-kernel, linux-rt-users
On Mon, 23 Jun 2008, Steven Rostedt wrote:
>
> On Mon, 9 Jun 2008, ciaby wrote:
>
> >
> >
> > I already sent this patch, but seems that nobody cared... the last 2
> > revisions of the -rt kernel don't compile properly.
> > Second patch to fix this.
> > Regards
>
> I still don't have a "Signed-off-by:" for this patch. Please send it to me
> ASAP, otherwise it will miss the next release.
>
I'm posting out -rt7 now without this patch. I'm hoping to get your
Signed-off-by for -rt8 which will come out soon (I want to get Gregory's
patches testest ASAP too).
-- Steve
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2008-06-24 1:30 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-09 9:51 [PATCH] 2.6.25.4-rt6: missing global_rt_runtime() in sched.c ciaby
2008-06-09 9:51 ` ciaby
[not found] ` <a3d4028e0806090255x7301df1kd2c0fbc9d1e678c1@mail.gmail.com>
2008-06-09 10:08 ` ciaby
2008-06-09 12:54 ` Tarkan Erimer
2008-06-09 18:02 ` Daniel Walker
2008-06-13 10:07 ` ciaby
2008-06-13 10:07 ` ciaby
2008-06-13 19:23 ` Daniel Walker
2008-06-23 22:43 ` Steven Rostedt
2008-06-24 1:30 ` Steven Rostedt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.