direct-io.hg

view xen/include/asm-powerpc/smp.h @ 11526:ce9c34c049c5

[POWERPC][XEN] Track the Hard CPUID as configured by the FW

This patch correctly implements and supports hard_smp_processor_id().

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Mon Sep 18 09:23:51 2006 -0400 (2006-09-18)
parents e20a469dabb4
children f911e945d959
line source
1 /*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15 *
16 * Copyright (C) IBM Corp. 2005
17 *
18 * Authors: Hollis Blanchard <hollisb@us.ibm.com>
19 */
21 #ifndef _ASM_SMP_H
22 #define _ASM_SMP_H
24 #include <xen/types.h>
25 #include <xen/cpumask.h>
26 #include <xen/init.h>
27 #include <asm/current.h>
28 extern int smp_num_siblings;
30 /* revisit when we support SMP */
31 #define raw_smp_processor_id() (parea->whoami)
32 #define get_hard_smp_processor_id(i) (global_cpu_table[i]->hard_id)
33 #define hard_smp_processor_id() (parea->hard_id)
34 extern cpumask_t cpu_sibling_map[];
35 extern cpumask_t cpu_core_map[];
36 extern void __devinit smp_generic_take_timebase(void);
37 extern void __devinit smp_generic_give_timebase(void);
38 #endif