aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-arm/smp.h
blob: 1c2746b763cf492e93289bd6f22ca68c569c27b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef __ASM_SMP_H
#define __ASM_SMP_H

#ifndef __ASSEMBLY__
#include <xen/config.h>
#include <xen/cpumask.h>
#include <asm/current.h>
#endif

DECLARE_PER_CPU(cpumask_var_t, cpu_sibling_mask);
DECLARE_PER_CPU(cpumask_var_t, cpu_core_mask);

#define cpu_is_offline(cpu) unlikely(!cpu_online(cpu))

#define raw_smp_processor_id() (get_processor_id())

extern void stop_cpu(void);

/* Bring the non-boot CPUs up to paging and ready to enter C.  
 * Must be called after Xen is relocated but before the original copy of
 * .text gets overwritten. */
extern void
make_cpus_ready(unsigned int max_cpus, unsigned long boot_phys_offset);

extern void smp_clear_cpu_maps (void);
extern int smp_get_max_cpus (void);
#endif
/*
 * Local variables:
 * mode: C
 * c-file-style: "BSD"
 * c-basic-offset: 4
 * indent-tabs-mode: nil
 * End:
 */