Subversion Repositories shark

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
422 giacomo 1
#ifndef __ASM_GENERIC_CPUMASK_CONST_VALUE_H
2
#define __ASM_GENERIC_CPUMASK_CONST_VALUE_H
3
 
4
typedef const cpumask_t cpumask_const_t;
5
 
6
#define mk_cpumask_const(map)           ((cpumask_const_t)(map))
7
#define cpu_isset_const(cpu, map)       cpu_isset(cpu, map)
8
#define cpus_and_const(dst,src1,src2)   cpus_and(dst, src1, src2)
9
#define cpus_or_const(dst,src1,src2)    cpus_or(dst, src1, src2)
10
#define cpus_equal_const(map1, map2)    cpus_equal(map1, map2)
11
#define cpus_empty_const(map)           cpus_empty(map)
12
#define cpus_copy_const(map1, map2)     do { map1 = (cpumask_t)map2; } while (0)
13
#define cpus_weight_const(map)          cpus_weight(map)
14
#define first_cpu_const(map)            first_cpu(map)
15
#define next_cpu_const(cpu, map)        next_cpu(cpu, map)
16
 
17
/* only ever use this for things that are _never_ used on large boxen */
18
#define cpus_coerce_const(map)          cpus_coerce(map)
19
#define any_online_cpu_const(map)       any_online_cpu(map)
20
 
21
#endif /* __ASM_GENERIC_CPUMASK_CONST_VALUE_H */