From a9e69d935cb5c2e5ffca1bbc977252ce7661d343 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Mon, 27 Oct 2008 16:30:24 +0000 Subject: Strange little kernel optimization to ease targeting the timer tick and to limit the number of loops in the tick function to the number of tasks added rather than always looping the max number. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18893 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/mips/ingenic_jz47xx/kernel-jz4740.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'firmware/target/mips/ingenic_jz47xx/kernel-jz4740.c') diff --git a/firmware/target/mips/ingenic_jz47xx/kernel-jz4740.c b/firmware/target/mips/ingenic_jz47xx/kernel-jz4740.c index 62176cee24..dcfdfd6a38 100644 --- a/firmware/target/mips/ingenic_jz47xx/kernel-jz4740.c +++ b/firmware/target/mips/ingenic_jz47xx/kernel-jz4740.c @@ -24,8 +24,6 @@ #include "kernel.h" #include "jz4740.h" -extern void (*tick_funcs[MAX_NUM_TICK_TASKS])(void); - #define USE_RTC_CLOCK 0 void tick_start(unsigned int interval_in_ms) { @@ -70,13 +68,6 @@ void TCU0(void) { __tcu_clear_full_match_flag(0); - int i; - /* Run through the list of tick tasks */ - for(i = 0; i < MAX_NUM_TICK_TASKS; i++) - { - if(tick_funcs[i]) - tick_funcs[i](); - } - current_tick++; + call_tick_tasks(); } -- cgit v1.2.3