ia64/xen-unstable

view xen/arch/powerpc/smp.c @ 12916:2a10ce87327c

[XEN][POWERPC] Be a little smarter with unimplemented()
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 Fri Sep 22 11:51:56 2006 -0400 (2006-09-22)
parents 4da585fb62f9
children 067bf06057cc
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 #include <xen/cpumask.h>
22 #include <xen/smp.h>
23 #include <asm/flushtlb.h>
24 #include <asm/debugger.h>
26 int smp_num_siblings = 1;
27 int smp_num_cpus = 1;
28 int ht_per_core = 1;
30 void __flush_tlb_mask(cpumask_t mask, unsigned long addr)
31 {
32 unimplemented();
33 }
35 void smp_send_event_check_mask(cpumask_t mask)
36 {
37 cpu_clear(smp_processor_id(), mask);
38 if (!cpus_empty(mask))
39 unimplemented();
40 }
43 int smp_call_function(void (*func) (void *info), void *info, int retry,
44 int wait)
45 {
46 cpumask_t allbutself = cpu_online_map;
47 cpu_clear(smp_processor_id(), allbutself);
49 return on_selected_cpus(allbutself, func, info, retry, wait);
50 }
52 void smp_send_stop(void)
53 {
54 unimplemented();
55 }
57 int on_selected_cpus(
58 cpumask_t selected,
59 void (*func) (void *info),
60 void *info,
61 int retry,
62 int wait)
63 {
64 unimplemented();
65 return 0;
66 }