summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQiuwen Lu <[email protected]>2019-08-15 14:21:26 +0800
committerQiuwen Lu <[email protected]>2019-08-15 14:21:26 +0800
commit79e262c2a02f16ee47be99c7bb4d93c02363a953 (patch)
tree5a541dc779bdedcb81da0ef48b80bcfcb84a76e1
parent01211d071a1a25044f932423e00374950dc5d193 (diff)
#19 修正计算处理器总数量错误的问题v4.3.14-20190910v4.3.13-20190816
-rw-r--r--infra/include/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/infra/include/common.h b/infra/include/common.h
index b0434ee..0d15aec 100644
--- a/infra/include/common.h
+++ b/infra/include/common.h
@@ -245,7 +245,7 @@ static unsigned int inline mask_is_set(mask_t mask, unsigned int id)
static int inline cpu_set_location(cpu_set_t * cpu_set_p, unsigned int id)
{
unsigned int bit_count = 0;
- for (unsigned bit_iter = 0; bit_iter < CPU_COUNT(cpu_set_p); bit_iter++)
+ for (unsigned bit_iter = 0; bit_iter < CPU_SETSIZE; bit_iter++)
{
if (CPU_ISSET(bit_iter, cpu_set_p))
{