14 Star 0 Fork 3

src-openEuler/rt-tests

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
rt-tests-cyclictest-Assume-libnuma-version-2-by-default.patch 883 Bytes
一键复制 编辑 原始数据 按行查看 历史
RyanL 提交于 2023-02-23 15:46 +08:00 . Package init
From b0bd20facc01bd2a3d2bb7a1cbf26d9452c68c41 Mon Sep 17 00:00:00 2001
From: John Kacur <jkacur@redhat.com>
Date: Thu, 19 Sep 2019 20:19:17 +0200
Subject: [PATCH] rt-tests: cyclictest: Assume libnuma version 2 by default
Most distributions have used libnuma version 2 for awhile now, so make
it the default.
This doesn't prevent people from defining it as version 1, or compiling
without numa.
Signed-off-by: John Kacur <jkacur@redhat.com>
---
src/cyclictest/rt_numa.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cyclictest/rt_numa.h b/src/cyclictest/rt_numa.h
index e0f4b2e9d8b2..7adeb3c01324 100644
--- a/src/cyclictest/rt_numa.h
+++ b/src/cyclictest/rt_numa.h
@@ -29,7 +29,7 @@ static int numa = 0;
#include <numa.h>
#ifndef LIBNUMA_API_VERSION
-#define LIBNUMA_API_VERSION 1
+#define LIBNUMA_API_VERSION 2
#endif
static void *
--
2.20.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/rt-tests.git
git@gitee.com:src-openeuler/rt-tests.git
src-openeuler
rt-tests
rt-tests
master

搜索帮助