系统中的 每个CPU都有它自己的运行队列,所有的 runqueue结构存放在 runqueues每CPU( per-CPU)变量中。宏this_rq( )产生本地CPU运行队 列的地址,而宏cpu_rq(n)产生索引为n 的CPU的运行队列的地址。
基于20个网页-相关网页
The kernel provides other functions for per-CPU locking and dynamic allocation of variables.
内核提供了用于per - CPU锁定和变量动态分配的其他函数。
If per-CPU data is needed (as determined in the section header checks), a per-CPU block is allocated.
如果需要per - CPU数据(这在检查区段头时确定),那么就分配per - cpu块。
Locking should ensure both that per-CPU data structures and state are always protected against preemption.
锁定可以确保每个CPU的数据结构和状态始终受到保护而不被抢占。
应用推荐