From: Erich Focht <efocht@ess.nec.de>
To: linux-ia64@vger.kernel.org
Subject: [Linux-ia64] O(1) scheduler fix for 2.5-ia64
Date: Mon, 04 Nov 2002 18:53:07 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590709805329@msgid-missing> (raw)
[-- Attachment #1: Type: text/plain, Size: 423 bytes --]
Hi David,
this problem is wellknown and I actually thought that it was
solved. But it looks like the complex prepare_arch_switch()
etc. macros didn't make it into the 2.5 kernels for IA64. They are
needed on IA64 because we have to release the runqueue lock during
context switch. This is similar to sparc64. Thanks to John Hawks for
noticing this.
Please include this into your kernel tree.
Regards,
Erich
[-- Attachment #2: O1_switch_fix-2.5.45.patch --]
[-- Type: text/x-diff, Size: 720 bytes --]
diff -urNp linux-2.5.45-ia64/include/asm-ia64/system.h linux-2.5.45-ia64-o1fix/include/asm-ia64/system.h
--- linux-2.5.45-ia64/include/asm-ia64/system.h Mon Nov 4 19:31:52 2002
+++ linux-2.5.45-ia64-o1fix/include/asm-ia64/system.h Mon Nov 4 19:46:35 2002
@@ -432,6 +432,18 @@ extern void ia64_load_extra (struct task
} while (0)
#endif
+#define prepare_arch_switch(rq, next) \
+do { spin_lock(&(next)->switch_lock); \
+ spin_unlock(&(rq)->lock); \
+} while (0)
+
+#define finish_arch_switch(rq, prev) \
+do { spin_unlock_irq(&(prev)->switch_lock); \
+} while (0)
+
+#define task_running(rq, p) \
+ ((rq)->curr == (p) || spin_is_locked(&(p)->switch_lock))
+
#endif /* __KERNEL__ */
#endif /* __ASSEMBLY__ */
reply other threads:[~2002-11-04 18:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=marc-linux-ia64-105590709805329@msgid-missing \
--to=efocht@ess.nec.de \
--cc=linux-ia64@vger.kernel.org \
/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