blob: ca552261ed1fcee5c3493830d2903e9754bcc3a3 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef __UM_SMP_H
2#define __UM_SMP_H
3
4#ifdef CONFIG_SMP
5
Linus Torvalds1da177e2005-04-16 15:20:36 -07006#include "linux/bitops.h"
7#include "asm/current.h"
8#include "linux/cpumask.h"
9
Ingo Molnar39c715b2005-06-21 17:14:34 -070010#define raw_smp_processor_id() (current_thread->cpu)
11
Linus Torvalds1da177e2005-04-16 15:20:36 -070012#define cpu_logical_map(n) (n)
13#define cpu_number_map(n) (n)
14#define PROC_CHANGE_PENALTY 15 /* Pick a number, any number */
15extern int hard_smp_processor_id(void);
16#define NO_PROC_ID -1
17
18extern int ncpus;
19
20
21extern inline void smp_cpus_done(unsigned int maxcpus)
22{
23}
24
Paolo 'Blaisorblade' Giarrusso72e55252006-02-01 03:06:29 -080025extern struct task_struct *idle_threads[NR_CPUS];
26
Linus Torvalds1da177e2005-04-16 15:20:36 -070027#endif
28
29#endif