smp.h (cf9ce948f47640797bd19980e1d99c6d17d0bdc3) | smp.h (28fa468f53163bc0b867b4cc75a9e36e7ed4dbbd) |
---|---|
1#ifndef __UM_SMP_H 2#define __UM_SMP_H 3 | 1#ifndef __UM_SMP_H 2#define __UM_SMP_H 3 |
4#ifdef CONFIG_SMP 5 6#include <linux/bitops.h> 7#include <asm/current.h> 8#include <linux/cpumask.h> 9 10#define raw_smp_processor_id() (current_thread->cpu) 11 12#define cpu_logical_map(n) (n) 13#define cpu_number_map(n) (n) 14extern int hard_smp_processor_id(void); 15#define NO_PROC_ID -1 16 17extern int ncpus; 18 19 20static inline void smp_cpus_done(unsigned int maxcpus) 21{ 22} 23 24extern struct task_struct *idle_threads[NR_CPUS]; 25 26#else 27 | |
28#define hard_smp_processor_id() 0 29 30#endif | 4#define hard_smp_processor_id() 0 5 6#endif |
31 32#endif | |