Magellan Linux

Contents of /tags/kernel26-xen-2_6_25_r1-fedora9-patches/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 608 - (show annotations) (download)
Fri May 23 12:17:32 2008 UTC (16 years ago) by (unknown author)
File size: 891 byte(s)
This commit was manufactured by cvs2svn to create tag
'kernel26-xen-2_6_25_r1-fedora9-patches'.
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