Go to the documentation of this file. 1 #ifndef _ASM_M32R_SMP_H
2 #define _ASM_M32R_SMP_H
12 #define PHYSID_ARRAY_SIZE 1
21 #define physid_set(physid, map) set_bit(physid, (map).mask)
22 #define physid_clear(physid, map) clear_bit(physid, (map).mask)
23 #define physid_isset(physid, map) test_bit(physid, (map).mask)
24 #define physid_test_and_set(physid, map) test_and_set_bit(physid, (map).mask)
26 #define physids_and(dst, src1, src2) bitmap_and((dst).mask, (src1).mask, (src2).mask, MAX_APICS)
27 #define physids_or(dst, src1, src2) bitmap_or((dst).mask, (src1).mask, (src2).mask, MAX_APICS)
28 #define physids_clear(map) bitmap_zero((map).mask, MAX_APICS)
29 #define physids_complement(dst, src) bitmap_complement((dst).mask,(src).mask, MAX_APICS)
30 #define physids_empty(map) bitmap_empty((map).mask, MAX_APICS)
31 #define physids_equal(map1, map2) bitmap_equal((map1).mask, (map2).mask, MAX_APICS)
32 #define physids_weight(map) bitmap_weight((map).mask, MAX_APICS)
33 #define physids_shift_right(d, s, n) bitmap_shift_right((d).mask, (s).mask, n, MAX_APICS)
34 #define physids_shift_left(d, s, n) bitmap_shift_left((d).mask, (s).mask, n, MAX_APICS)
35 #define physids_coerce(map) ((map).mask[0])
37 #define physids_promote(physids) \
39 physid_mask_t __physid_mask = PHYSID_MASK_NONE; \
40 __physid_mask.mask[0] = physids; \
44 #define physid_mask_of_physid(physid) \
46 physid_mask_t __physid_mask = PHYSID_MASK_NONE; \
47 physid_set(physid, __physid_mask); \
51 #define PHYSID_MASK_ALL { {[0 ... PHYSID_ARRAY_SIZE-1] = ~0UL} }
52 #define PHYSID_MASK_NONE { {[0 ... PHYSID_ARRAY_SIZE-1] = 0UL} }
61 #define cpu_to_physid(cpu_id) cpu_2_physid[cpu_id]
63 #define raw_smp_processor_id() (current_thread_info()->cpu)
90 #define NO_PROC_ID (0xff)
95 #define RESCHEDULE_IPI (M32R_IRQ_IPI0-M32R_IRQ_IPI0)
96 #define INVALIDATE_TLB_IPI (M32R_IRQ_IPI1-M32R_IRQ_IPI0)
97 #define CALL_FUNCTION_IPI (M32R_IRQ_IPI2-M32R_IRQ_IPI0)
98 #define LOCAL_TIMER_IPI (M32R_IRQ_IPI3-M32R_IRQ_IPI0)
99 #define INVALIDATE_CACHE_IPI (M32R_IRQ_IPI4-M32R_IRQ_IPI0)
100 #define CPU_BOOT_IPI (M32R_IRQ_IPI5-M32R_IRQ_IPI0)
101 #define CALL_FUNC_SINGLE_IPI (M32R_IRQ_IPI6-M32R_IRQ_IPI0)
103 #define IPI_SHIFT (0)
108 #define hard_smp_processor_id() 0