From: Daniel Walker <dwalker@mvista.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [patch] Real-Time Preemption, -RT-2.6.12-rc3-V0.7.46-01
Date: 26 Apr 2005 10:49:15 -0700 [thread overview]
Message-ID: <1114537755.12772.26.camel@dhcp153.mvista.com> (raw)
In-Reply-To: <20050422155549.GB22795@elte.hu>
[-- Attachment #1: Type: text/plain, Size: 211 bytes --]
On Fri, 2005-04-22 at 08:55, Ingo Molnar wrote:
> i used:
>
> ./test --tasks 10 file.hist
This patch cleanup the delays on increased numbers of tasks. It goes on
to of the current plist snapshot.
Daniel
[-- Attachment #2: fix_pi_list_init.patch --]
[-- Type: text/x-patch, Size: 1772 bytes --]
Index: linux-2.6.11/include/linux/plist.h
===================================================================
--- linux-2.6.11.orig/include/linux/plist.h 2005-04-22 19:36:54.000000000 +0000
+++ linux-2.6.11/include/linux/plist.h 2005-04-22 19:38:29.000000000 +0000
@@ -251,7 +251,7 @@
static inline void plist_del_init(struct plist *pl, struct plist *plist)
{
plist_del (pl, plist);
- plist_init(pl, 0);
+ plist_init(pl, INT_MAX);
}
/* Return the priority a pl node */
Index: linux-2.6.11/include/linux/rt_lock.h
===================================================================
--- linux-2.6.11.orig/include/linux/rt_lock.h 2005-04-21 17:49:26.000000000 +0000
+++ linux-2.6.11/include/linux/rt_lock.h 2005-04-22 22:35:37.000000000 +0000
@@ -95,12 +95,12 @@
#ifdef CONFIG_RT_DEADLOCK_DETECT
# define __RT_MUTEX_INITIALIZER(lockname) \
{ .wait_lock = RAW_SPIN_LOCK_UNLOCKED, \
- .wait_list = PLIST_INIT((lockname).wait_list, 0), \
+ .wait_list = PLIST_INIT((lockname).wait_list, MAX_PRIO), \
.name = #lockname, .file = __FILE__, .line = __LINE__ }
#else
# define __RT_MUTEX_INITIALIZER(lockname) \
{ .wait_lock = RAW_SPIN_LOCK_UNLOCKED, \
- PLIST_INIT((lockname).wait_list, 0) }
+ PLIST_INIT((lockname).wait_list, MAX_PRIO) }
#endif
/*
* RW-semaphores are an RT mutex plus a reader-depth count.
Index: linux-2.6.11/kernel/rt.c
===================================================================
--- linux-2.6.11.orig/kernel/rt.c 2005-04-22 15:05:33.000000000 +0000
+++ linux-2.6.11/kernel/rt.c 2005-04-22 22:34:22.000000000 +0000
@@ -939,6 +939,7 @@
set_task_state(task, TASK_UNINTERRUPTIBLE);
+ plist_init (&waiter.list, task->prio);
task_blocks_on_lock(&waiter, task, lock, eip);
TRACE_BUG_ON(!irqs_disabled());
next prev parent reply other threads:[~2005-04-26 17:52 UTC|newest]
Thread overview: 87+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-25 14:59 [patch] Real-Time Preemption, -RT-2.6.12-rc1-V0.7.41-10 Ingo Molnar
2005-03-25 22:33 ` Lee Revell
2005-03-25 22:39 ` Ingo Molnar
2005-03-26 5:14 ` Lee Revell
2005-03-27 8:58 ` Ingo Molnar
2005-03-30 5:16 ` Lee Revell
2005-03-30 6:54 ` Ingo Molnar
2005-03-29 22:31 ` Lee Revell
2005-03-30 8:03 ` Ingo Molnar
2005-03-31 8:55 ` [patch] Real-Time Preemption, -RT-2.6.12-rc1-V0.7.41-25 Ingo Molnar
2005-04-01 10:47 ` [patch] Real-Time Preemption, -RT-2.6.12-rc1-V0.7.43-00 Ingo Molnar
2005-04-01 12:13 ` Rui Nuno Capela
2005-04-01 12:52 ` Ingo Molnar
2005-04-01 14:42 ` Rui Nuno Capela
2005-04-01 15:06 ` Ingo Molnar
2005-04-01 15:52 ` Rui Nuno Capela
2005-04-01 16:28 ` Ingo Molnar
2005-04-01 21:26 ` Rui Nuno Capela
2005-04-01 17:31 ` Gene Heskett
2005-04-01 18:27 ` K.R. Foley
2005-04-01 18:29 ` Ingo Molnar
2005-04-01 19:21 ` Gene Heskett
2005-04-01 19:19 ` Gene Heskett
2005-04-01 19:22 ` K.R. Foley
2005-04-01 23:34 ` Gene Heskett
2005-04-02 1:45 ` Lee Revell
2005-04-02 2:30 ` Gene Heskett
2005-04-02 5:12 ` Ingo Molnar
2005-04-02 19:37 ` Steven Rostedt
2005-04-02 20:06 ` Steven Rostedt
2005-04-02 20:17 ` Lee Revell
2005-04-02 20:34 ` Ingo Molnar
2005-04-02 22:38 ` Gene Heskett
2005-04-02 20:35 ` Ingo Molnar
2005-04-02 20:44 ` Steven Rostedt
2005-04-02 22:09 ` Steven Rostedt
2005-04-03 0:06 ` Steven Rostedt
2005-04-04 20:00 ` Ingo Molnar
2005-04-04 20:40 ` Steven Rostedt
2005-04-04 20:47 ` Ingo Molnar
2005-04-04 21:14 ` Steven Rostedt
2005-04-04 22:51 ` Zwane Mwaikambo
2005-04-04 22:59 ` Steven Rostedt
2005-04-04 23:09 ` Esben Nielsen
2005-04-05 7:57 ` Zwane Mwaikambo
2005-04-05 15:18 ` Mike Galbraith
2005-04-04 23:06 ` Esben Nielsen
2005-04-05 5:34 ` Ingo Molnar
2005-04-05 9:25 ` Esben Nielsen
2005-04-02 23:45 ` Lee Revell
2005-04-02 20:10 ` Lee Revell
2005-04-05 7:19 ` [patch] Real-Time Preemption, -RT-2.6.12-rc2-V0.7.44-00 Ingo Molnar
2005-04-05 19:06 ` Rui Nuno Capela
2005-04-05 19:36 ` Steven Rostedt
2005-04-08 15:22 ` Rui Nuno Capela
2005-04-08 17:15 ` Lee Revell
2005-04-08 20:15 ` K.R. Foley
2005-04-08 20:17 ` Lee Revell
2005-04-08 20:26 ` K.R. Foley
2005-04-08 21:00 ` Lee Revell
2005-04-08 21:36 ` K.R. Foley
2005-04-10 17:23 ` K.R. Foley
2005-04-10 17:27 ` Ingo Molnar
2005-04-10 17:39 ` Steven Rostedt
2005-04-10 17:47 ` Ingo Molnar
2005-04-12 18:17 ` Lee Revell
2005-04-21 7:35 ` [patch] Real-Time Preemption, -RT-2.6.12-rc3-V0.7.46-00 Ingo Molnar
2005-04-21 8:45 ` Paolo Ciarrocchi
2005-04-21 16:16 ` Daniel Walker
2005-04-21 19:54 ` Daniel Walker
2005-04-22 6:27 ` [patch] Real-Time Preemption, -RT-2.6.12-rc3-V0.7.46-01 Ingo Molnar
2005-04-22 7:34 ` Ingo Molnar
2005-04-22 15:48 ` Daniel Walker
2005-04-22 15:49 ` Ingo Molnar
2005-04-22 15:53 ` Daniel Walker
2005-04-22 15:55 ` Ingo Molnar
2005-04-22 15:56 ` Ingo Molnar
2005-04-26 17:49 ` Daniel Walker [this message]
2005-05-09 7:23 ` Ingo Molnar
2005-04-22 21:06 ` Inaky Perez-Gonzalez
2005-04-22 21:15 ` Daniel Walker
2005-05-04 8:24 ` Ingo Molnar
2005-04-22 21:17 ` Daniel Walker
2005-04-30 23:28 ` Lee Revell
2005-05-04 8:22 ` Ingo Molnar
2005-05-04 15:05 ` Lee Revell
2005-05-08 3:30 Norval Watson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1114537755.12772.26.camel@dhcp153.mvista.com \
--to=dwalker@mvista.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®