From 004c7abcdbd39095aa07e7da0da4e2fc6b613051 Mon Sep 17 00:00:00 2001 From: Yunfeng Ye Date: Sat, 21 Nov 2020 16:35:19 +0800 Subject: [PATCH] Remove some unused constant macros in constants.h As the code history changes, some constant macros are not used, so remove the unused macros in constants.h. Signed-off-by: Yunfeng Ye --- constants.h | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/constants.h b/constants.h index 8e34339..c7439d8 100644 --- a/constants.h +++ b/constants.h @@ -6,28 +6,4 @@ #define NSEC_PER_SEC 1e9 -/* NUMA topology refresh intervals, in units of SLEEP_INTERVAL */ -#define NUMA_REFRESH_INTERVAL 32 -/* NIC interrupt refresh interval, in units of SLEEP_INTERVAL */ -#define NIC_REFRESH_INTERVAL 32 - -/* minimum number of interrupts since boot for an interrupt to matter */ -#define MIN_IRQ_COUNT 20 - - -/* balancing tunings */ - -#define CROSS_PACKAGE_PENALTY 3000 -#define NUMA_PENALTY 500 -#define POWER_MODE_PACKAGE_THRESHOLD 20000 -#define CLASS_VIOLATION_PENTALTY 6000 -#define MSI_CACHE_PENALTY 10000 -#define CORE_SPECIFIC_THRESHOLD 5000 - -/* power mode */ - -#define POWER_MODE_SOFTIRQ_THRESHOLD 20 -#define POWER_MODE_HYSTERESIS 3 - - #endif