All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Nyberg <alexn@dsv.su.se>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org, pavel@suse.cz
Subject: Re: 2.6.12-rc2-mm2
Date: Sun, 10 Apr 2005 15:31:55 +0200	[thread overview]
Message-ID: <1113139915.723.5.camel@localhost.localdomain> (raw)
In-Reply-To: <20050408030835.4941cd98.akpm@osdl.org>

> - Largeish x86_64 update

Hi Pavel

I'm playing a bit with suspend on smp, we need something like this:
As the cpu-mask is set to only this cpu _smp_processor_id() is safe.

Index: linux-2.6.11/kernel/power/smp.c
===================================================================
--- linux-2.6.11.orig/kernel/power/smp.c	2005-04-10 09:43:13.000000000 +0200
+++ linux-2.6.11/kernel/power/smp.c	2005-04-10 15:23:36.000000000 +0200
@@ -46,13 +46,13 @@
 
 void disable_nonboot_cpus(void)
 {
-	printk("Freezing CPUs (at %d)", smp_processor_id());
 	oldmask = current->cpus_allowed;
 	set_cpus_allowed(current, cpumask_of_cpu(0));
+	printk("Freezing CPUs (at %d)", _smp_processor_id());
 	current->state = TASK_INTERRUPTIBLE;
 	schedule_timeout(HZ);
 	printk("...");
-	BUG_ON(smp_processor_id() != 0);
+	BUG_ON(_smp_processor_id() != 0);
 
 	/* FIXME: for this to work, all the CPUs must be running
 	 * "idle" thread (or we deadlock). Is that guaranteed? */



  parent reply	other threads:[~2005-04-10 13:32 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-08 10:08 2.6.12-rc2-mm2 Andrew Morton
2005-04-08 11:46 ` 2.6.12-rc2-mm2 Rafael J. Wysocki
2005-04-08 16:44   ` 2.6.12-rc2-mm2 Rafael J. Wysocki
2005-04-08 12:25 ` 2.6.12-rc2-mm2 Indrek Kruusa
2005-04-08 14:11 ` 2.6.12-rc2-mm2 Jan Dittmer
2005-04-08 15:23   ` 2.6.12-rc2-mm2 Paulo Marques
2005-04-08 14:14 ` 2.6.12-rc2-mm2 Jan Dittmer
     [not found]   ` <425691BD.9080507-wDE+IXx/zk/R7s880joybQ@public.gmane.org>
2005-04-08 22:21     ` 2.6.12-rc2-mm2 Andrew Morton
2005-04-08 22:21       ` 2.6.12-rc2-mm2 Andrew Morton
2005-04-08 15:17 ` 2.6.12-rc2-mm2 Alexander Nyberg
2005-04-08 17:28 ` 2.6.12-rc2-mm2 Alexey Dobriyan
2005-04-08 13:52   ` 2.6.12-rc2-mm2 Martin Waitz
2005-04-08 23:28 ` 2.6.12-rc2-mm2 Jesper Juhl
2005-04-09  1:49   ` 2.6.12-rc2-mm2 Adrian Bunk
2005-04-09  1:57     ` 2.6.12-rc2-mm2 Jesper Juhl
2005-04-09 12:51       ` 2.6.12-rc2-mm2 Adrian Bunk
     [not found] ` <20050408030835.4941cd98.akpm-3NddpPZAyC0@public.gmane.org>
2005-04-09 13:43   ` 2.6.12-rc2-mm2 Alexander Nyberg
2005-04-09 13:43     ` 2.6.12-rc2-mm2 Alexander Nyberg
     [not found]     ` <1113054188.2364.23.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2005-04-09 17:22       ` 2.6.12-rc2-mm2 =?gb18030?q?Ois=A8=AAn_Mac_Fheara=A8=AA?=
2005-05-26  5:07       ` 2.6.12-rc2-mm2 Andrew Morton
2005-04-10 13:31 ` Alexander Nyberg [this message]
2005-04-10 22:48 ` 2.6.12-rc2-mm2 Adrian Bunk
2005-04-11 15:18   ` 2.6.12-rc2-mm2 Paul E. McKenney
2005-04-13  0:36     ` 2.6.12-rc2-mm2 Adrian Bunk
2005-04-13  1:32       ` 2.6.12-rc2-mm2 Paul E. McKenney
  -- strict thread matches above, loose matches on Subject: below --
2005-04-08 11:50 2.6.12-rc2-mm2 Michael Thonke
2005-04-10 15:06 2.6.12-rc2-mm2 Pavel Machek

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=1113139915.723.5.camel@localhost.localdomain \
    --to=alexn@dsv.su.se \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@suse.cz \
    /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.