From fceffb7d4aa429a60cd4cf760dd9852bb594b4be Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Sat, 17 Apr 2021 11:25:23 +0100 Subject: x1000: disable CPU idle stats by default There's no point including this in normal builds: the stats are not used for anything, they are not really of interest to anyone except developers, and add a small overhead to the kernel tick. Change-Id: I1b4f67cc62d11d634a8cec279dca513dd10eea96 --- firmware/target/mips/ingenic_x1000/debug-x1000.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'firmware/target/mips/ingenic_x1000/debug-x1000.c') diff --git a/firmware/target/mips/ingenic_x1000/debug-x1000.c b/firmware/target/mips/ingenic_x1000/debug-x1000.c index fed586691c..74bbcd77a6 100644 --- a/firmware/target/mips/ingenic_x1000/debug-x1000.c +++ b/firmware/target/mips/ingenic_x1000/debug-x1000.c @@ -130,6 +130,7 @@ static bool dbg_audio(void) return false; } +#ifdef X1000_CPUIDLE_STATS static bool dbg_cpuidle(void) { do { @@ -143,6 +144,7 @@ static bool dbg_cpuidle(void) return false; } +#endif #ifdef FIIO_M3K extern bool dbg_fiiom3k_touchpad(void); @@ -156,7 +158,9 @@ static const struct { } menuitems[] = { {"Clocks", &dbg_clocks}, {"GPIOs", &dbg_gpios}, +#ifdef X1000_CPUIDLE_STATS {"CPU idle", &dbg_cpuidle}, +#endif {"Audio", &dbg_audio}, #ifdef FIIO_M3K {"Touchpad", &dbg_fiiom3k_touchpad}, -- cgit v1.2.3