review 一处修改

This commit is contained in:
Yi Wang
2017-08-29 11:43:29 +08:00
committed by GitHub
parent 4673d047f8
commit 7e1ce7e51f

View File

@@ -52,7 +52,7 @@ typedef struct cpumask { DECLARE_BITMAP(bits, NR_CPUS); } cpumask_t;
(((8) + (8) - 1) / (8)) = 1
```
`NR_CPUS` 宏表示系统中 CPU且依赖于在 [include/linux/threads.h](https://github.com/torvalds/linux/blob/master/include/linux/threads.h) 中定义的 `CONFIG_NR_CPUS` 宏,看起来像这样:
`NR_CPUS` 宏表示的是系统中 CPU 的数目,且依赖于在 [include/linux/threads.h](https://github.com/torvalds/linux/blob/master/include/linux/threads.h) 中定义的 `CONFIG_NR_CPUS` 宏,看起来像这样:
```C
#ifndef CONFIG_NR_CPUS