From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sipsolutions.net (crystal.sipsolutions.net [195.210.38.204]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id C87CB67BBE for ; Wed, 13 Dec 2006 00:18:16 +1100 (EST) Subject: Re: [linux-pm] [RFC 1/3] support powermac G5 CPU hotplug From: Johannes Berg To: Pavel Machek In-Reply-To: <20061212130916.GB5190@ucw.cz> References: <20061211230208.526233000@sipsolutions.net> > <20061211230754.380263000@sipsolutions.net> <20061212130916.GB5190@ucw.cz> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-gGCxPhxuWa1XJyBfO+Xz" Date: Tue, 12 Dec 2006 14:18:03 +0100 Message-Id: <1165929483.22338.18.camel@johannes.berg> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org, Torrance , Michael Buesch , linux-pm@lists.osdl.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --=-gGCxPhxuWa1XJyBfO+Xz Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2006-12-12 at 13:09 +0000, Pavel Machek wrote: > > + /* who knows what context the processor might have died in... */ > > + task_thread_info(paca[cpu].__current)->preempt_count =3D 0; > > + >=20 > ?? Context for downing cpu should better be well-defined. Just do this > in cpu_die if it is really required. It is actually required but I'm not exactly sure why. When I don't do this, I end up with preempt_count() 0x100000 (IIRC, notes not here at the moment). I think this is because the suspend code has interrupts disabled already when downing the CPUs. johannes --=-gGCxPhxuWa1XJyBfO+Xz Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Comment: Johannes Berg (powerbook) iD8DBQBFfqwL/ETPhpq3jKURAhQKAJwPFHBdMAMZnOBGbAbURf5//OKkfACfXRIH 1d5cYx5vEXHFOCSC/xkIkb0= =JNNG -----END PGP SIGNATURE----- --=-gGCxPhxuWa1XJyBfO+Xz--