Magellan Linux

Contents of /trunk/kernel26-xen/patches-2.6.25-r1/1032-2.6.25-xen-x86_64-Add-hacky-64-bit-x86_-read-write-_percpu.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 606 - (show annotations) (download)
Thu May 22 23:13:13 2008 UTC (15 years, 11 months ago) by niro
File size: 891 byte(s)
-ver bump to 2.6.25-magellan-r1:
- linux-2.6.25.4
- fbcondecor-0.9.4
- squashfs-3.3
- unionfs-2.3.3
- tuxonice-3.0-rc7
- linux-phc-0.3.0
- acpi-dstd-0.9a
- reiser4
- xen-3.2.0
. ipw3945-1.2.2

1 From 8678e0caab8cd32d1d5cb5e603287cdb2f414ccb Mon Sep 17 00:00:00 2001
2 From: Eduardo Habkost <ehabkost@Rawhide-64.localdomain>
3 Date: Tue, 27 Nov 2007 18:21:29 -0200
4 Subject: [PATCH] xen x86_64: Add hacky 64-bit x86_{read,write}_percpu()
5
6 It isn't implemented on x86_64 yet, so I am simply using __get_cpu_var().
7
8 Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
9 ---
10 include/asm-x86/percpu.h | 4 ++++
11 1 files changed, 4 insertions(+), 0 deletions(-)
12
13 diff --git a/include/asm-x86/percpu.h b/include/asm-x86/percpu.h
14 index 0dec00f..b80af66 100644
15 --- a/include/asm-x86/percpu.h
16 +++ b/include/asm-x86/percpu.h
17 @@ -22,6 +22,10 @@
18
19 DECLARE_PER_CPU(struct x8664_pda, pda);
20
21 +/* x86_read_percpu & friends */
22 +#define x86_read_percpu(var) __get_cpu_var(var)
23 +#define x86_write_percpu(var,val) (__get_cpu_var(var) = (val))
24 +
25 #else /* CONFIG_X86_64 */
26
27 #ifdef __ASSEMBLY__
28 --
29 1.5.4.1
30