mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Robert Love <rml@tech9.net>
To: alan@redhat.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] 2.4-ac resend: SMP compile fix for sched.c
Date: 14 May 2002 09:49:17 -0700	[thread overview]
Message-ID: <1021394957.823.42.camel@sinai> (raw)

[-- Attachment #1: Type: text/plain, Size: 272 bytes --]

Alan,

Attached patch fixes the CONFIG_SMP compile error in kernel/sched.c due
to my latest O(1) scheduler patches that went into -ac2.  I apologize
for the slip - not sure how I missed the error.

Patch is against 2.4.19-pre8-ac3 - please apply.  Thanks,

	Robert Love



[-- Attachment #2: sched-compile-fix-rml-2.4.19-pre8-ac3-1.patch --]
[-- Type: text/x-patch, Size: 786 bytes --]

diff -urN linux-2.4.19-pre8-ac3/kernel/sched.c linux/kernel/sched.c
--- linux-2.4.19-pre8-ac3/kernel/sched.c	Tue May 14 09:40:05 2002
+++ linux/kernel/sched.c	Tue May 14 09:46:56 2002
@@ -1592,18 +1592,18 @@
 		cpu_dest = __ffs(p->cpus_allowed);
 		rq_dest = cpu_rq(cpu_dest);
 repeat:
-		cpu_src = p->thread_info->cpu;
+		cpu_src = p->cpu;
 		rq_src = cpu_rq(cpu_src);
 
 		local_irq_save(flags);
 		double_rq_lock(rq_src, rq_dest);
-		if (p->thread_info->cpu != cpu_src) {
+		if (p->cpu != cpu_src) {
 			double_rq_unlock(rq_src, rq_dest);
 			local_irq_restore(flags);
 			goto repeat;
 		}
 		if (rq_src == rq) {
-			p->thread_info->cpu = cpu_dest;
+			p->cpu = cpu_dest;
 			if (p->array) {
 				deactivate_task(p, rq_src);
 				activate_task(p, rq_dest);

                 reply	other threads:[~2002-05-14 16:49 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=1021394957.823.42.camel@sinai \
    --to=rml@tech9.net \
    --cc=alan@redhat.com \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®