随笔分类 - linux cpu driver
摘要:get_cpu_mask /* cpu_bit_bitmap[0] is empty - so we can back into it */ #define MASK_DECLARE_1(x) [x+1][0] = (1UL << (x)) #define MASK_DECLARE_2(x) MAS
阅读全文
摘要:cpumask struct cpumask __cpu_possible_mask struct cpumask __cpu_possible_mask在一个4core的SOC上面低4bit分别表示cpu0-cpu3,表示一个系统上配置了多少个cpu(core),不管它的状态是active还是in
阅读全文