[PATCH] Make __get_cpu_var use raw_smp_processor_id()

From: J.A. Magallon
Date: Thu Mar 23 2006 - 16:08:33 EST


--Sig_.nkPQSrYYtdrNvkqkXwV1hN
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

On Thu, 23 Mar 2006 22:07:11 +0100, "J.A. Magallon" <jamagallon@xxxxxxx> wr=
ote:

> On Thu, 23 Mar 2006 01:40:46 -0800, Andrew Morton <akpm@xxxxxxxx> wrote:
>=20
> >=20
> > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.16/2.=
6.16-mm1/
> >=20
>=20

--- linux-2.6.15-rc5/include/asm-generic/percpu.h.orig 2005-12-21 15:13:27.=
000000000 -0600
+++ linux-2.6.15-rc5/include/asm-generic/percpu.h 2005-12-21 15:13:43.00000=
0000 -0600
@@ -13,7 +13,7 @@ extern unsigned long __per_cpu_offset[NR
=20
/* var is in discarded region: offset to particular copy we want */
#define per_cpu(var, cpu) (*RELOC_HIDE(&per_cpu__##var, __per_cpu_offset[c=
pu]))
-#define __get_cpu_var(var) per_cpu(var, smp_processor_id())
+#define __get_cpu_var(var) per_cpu(var, raw_smp_processor_id())
=20
/* A macro to avoid #include hell... */
#define percpu_modcopy(pcpudst, src, size) \

--
J.A. Magallon <jamagallon()able!es> \ Software is like se=
x:
werewolf!able!es \ It's better when it's fr=
ee
Mandriva Linux release 2006.1 (Cooker) for i586
Linux 2.6.15-jam20 (gcc 4.0.3 (4.0.3-1mdk for Mandriva Linux release 2006.1=
))

--Sig_.nkPQSrYYtdrNvkqkXwV1hN
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEIw79RlIHNEGnKMMRAiVzAJ9QILR8jI+zJdCqaSiC8VU5tT8LIgCgms1V
7Lb6T7RAh3ESG0rvu6a/uSw=
=MdfT
-----END PGP SIGNATURE-----

--Sig_.nkPQSrYYtdrNvkqkXwV1hN--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/