60 lines
1.5 KiB
Diff
60 lines
1.5 KiB
Diff
From 2efbc92fd249ff524b3acdefccb3d679ac20f080 Mon Sep 17 00:00:00 2001
|
|
From: Yunfeng Ye <yeyunfeng@huawei.com>
|
|
Date: Wed, 30 Oct 2019 18:44:13 +0800
|
|
Subject: [PATCH 33/53] irqbalance: remove unused package_count variable
|
|
|
|
package_count variable is unused, so remote it. and cache_domain_count
|
|
variable only used in the local file, which no need to extern in
|
|
irqbalance.h
|
|
|
|
Signed-off-by: Yunfeng Ye <yeyunfeng@huawei.com>
|
|
---
|
|
cputree.c | 3 ---
|
|
irqbalance.h | 2 --
|
|
2 files changed, 5 deletions(-)
|
|
|
|
diff --git a/cputree.c b/cputree.c
|
|
index c88feda..1c1c99b 100644
|
|
--- a/cputree.c
|
|
+++ b/cputree.c
|
|
@@ -44,7 +44,6 @@ GList *cpus;
|
|
GList *cache_domains;
|
|
GList *packages;
|
|
|
|
-int package_count;
|
|
int cache_domain_count;
|
|
int core_count;
|
|
|
|
@@ -201,7 +200,6 @@ static struct topo_obj* add_cache_domain_to_package(struct topo_obj *cache,
|
|
package->obj_type_list = &packages;
|
|
package->number = packageid;
|
|
packages = g_list_append(packages, package);
|
|
- package_count++;
|
|
}
|
|
|
|
entry = g_list_first(package->children);
|
|
@@ -558,7 +556,6 @@ void clear_cpu_tree(void)
|
|
{
|
|
g_list_free_full(packages, free_cpu_topo);
|
|
packages = NULL;
|
|
- package_count = 0;
|
|
|
|
g_list_free_full(cache_domains, free_cpu_topo);
|
|
cache_domains = NULL;
|
|
diff --git a/irqbalance.h b/irqbalance.h
|
|
index a3e561e..62c7151 100644
|
|
--- a/irqbalance.h
|
|
+++ b/irqbalance.h
|
|
@@ -29,8 +29,6 @@
|
|
#include <systemd/sd-journal.h>
|
|
#endif
|
|
|
|
-extern int package_count;
|
|
-extern int cache_domain_count;
|
|
extern int core_count;
|
|
extern char *classes[];
|
|
|
|
--
|
|
2.23.0
|
|
|