随笔分类 -  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 阅读全文
posted @ 2021-12-08 20:15 aspirs 阅读(255) 评论(0) 推荐(0) 编辑
摘要:cpumask struct cpumask __cpu_possible_mask struct cpumask __cpu_possible_mask在一个4core的SOC上面低4bit分别表示cpu0-cpu3,表示一个系统上配置了多少个cpu(core),不管它的状态是active还是in 阅读全文
posted @ 2021-12-06 17:09 aspirs 阅读(417) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示