From: Randolph Chung <randolph@tausq.org>
To: parisc-linux@parisc-linux.org
Subject: [parisc-linux] small patch for cpu_idle?
Date: Sun, 21 Oct 2001 10:52:27 -0700 [thread overview]
Message-ID: <20011021105227.H537@tausq.org> (raw)
It appears to me that our cpu_idle is not quite right... what do you
guys think about this:
Index: process.c
===================================================================
RCS file: /home/cvs/parisc/linux/arch/parisc/kernel/process.c,v
retrieving revision 1.38
diff -u -r1.38 process.c
--- process.c 2001/10/09 19:43:35 1.38
+++ process.c 2001/10/21 17:46:53
@@ -67,8 +67,8 @@
current->counter = -100;
while (1) {
- while (!current->need_resched) {
- }
+ while (!current->need_resched)
+ continue;
schedule();
check_pgt_cache();
}
otherwise when cpu_idle gets called we might get stuck in an inf loop
(which happens, for example, when fsck requires manual intervention on
startup).
randolph
--
@..@ http://www.TauSq.org/
(----)
( >__< )
^^ ~~ ^^
next reply other threads:[~2001-10-21 17:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-21 17:52 Randolph Chung [this message]
2001-10-21 20:21 ` [parisc-linux] small patch for cpu_idle? Matthew Wilcox
2001-10-22 1:35 ` Randolph Chung
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=20011021105227.H537@tausq.org \
--to=randolph@tausq.org \
--cc=parisc-linux@parisc-linux.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 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.