diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2021-04-17 11:25:23 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2021-04-17 20:24:21 +0000 |
commit | fceffb7d4aa429a60cd4cf760dd9852bb594b4be (patch) | |
tree | 677b50a39874a2d134b502805638d7b7ae5bba37 /firmware/target/mips/ingenic_x1000/kernel-x1000.c | |
parent | 01d1eb425874813864d12d72c93e6e74ab92ac1f (diff) | |
download | rockbox-fceffb7d4aa429a60cd4cf760dd9852bb594b4be.tar.gz rockbox-fceffb7d4aa429a60cd4cf760dd9852bb594b4be.zip |
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
Diffstat (limited to 'firmware/target/mips/ingenic_x1000/kernel-x1000.c')
-rw-r--r-- | firmware/target/mips/ingenic_x1000/kernel-x1000.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_x1000/kernel-x1000.c b/firmware/target/mips/ingenic_x1000/kernel-x1000.c index c8105a3446..eb7c3d6124 100644 --- a/firmware/target/mips/ingenic_x1000/kernel-x1000.c +++ b/firmware/target/mips/ingenic_x1000/kernel-x1000.c | |||
@@ -57,6 +57,7 @@ void tick_start(unsigned interval_in_ms) | |||
57 | 57 | ||
58 | void OST(void) | 58 | void OST(void) |
59 | { | 59 | { |
60 | #ifdef X1000_CPUIDLE_STATS | ||
60 | /* CPU idle time accounting */ | 61 | /* CPU idle time accounting */ |
61 | uint32_t now = __ost_read32(); | 62 | uint32_t now = __ost_read32(); |
62 | uint32_t div = now - __cpu_idle_reftick; | 63 | uint32_t div = now - __cpu_idle_reftick; |
@@ -67,6 +68,7 @@ void OST(void) | |||
67 | __cpu_idle_ticks = 0; | 68 | __cpu_idle_ticks = 0; |
68 | __cpu_idle_reftick = now; | 69 | __cpu_idle_reftick = now; |
69 | } | 70 | } |
71 | #endif | ||
70 | 72 | ||
71 | /* Call regular kernel tick */ | 73 | /* Call regular kernel tick */ |
72 | jz_write(OST_1FLG, 0); | 74 | jz_write(OST_1FLG, 0); |