diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2008-10-27 16:30:24 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2008-10-27 16:30:24 +0000 |
commit | a9e69d935cb5c2e5ffca1bbc977252ce7661d343 (patch) | |
tree | 8ac65804b294cfe7cc55febe445f904a1b33cb0e /firmware/target/arm/tms320dm320/kernel-dm320.c | |
parent | e5d72ac5f767a66b11c7a46dfb4edd322f7a723d (diff) | |
download | rockbox-a9e69d935cb5c2e5ffca1bbc977252ce7661d343.tar.gz rockbox-a9e69d935cb5c2e5ffca1bbc977252ce7661d343.zip |
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
Diffstat (limited to 'firmware/target/arm/tms320dm320/kernel-dm320.c')
-rw-r--r-- | firmware/target/arm/tms320dm320/kernel-dm320.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/firmware/target/arm/tms320dm320/kernel-dm320.c b/firmware/target/arm/tms320dm320/kernel-dm320.c index 42f9773d36..b5eb4233e4 100644 --- a/firmware/target/arm/tms320dm320/kernel-dm320.c +++ b/firmware/target/arm/tms320dm320/kernel-dm320.c | |||
@@ -25,8 +25,6 @@ | |||
25 | #include "timer.h" | 25 | #include "timer.h" |
26 | #include "thread.h" | 26 | #include "thread.h" |
27 | 27 | ||
28 | extern void (*tick_funcs[MAX_NUM_TICK_TASKS])(void); | ||
29 | |||
30 | void tick_start(unsigned int interval_in_ms) | 28 | void tick_start(unsigned int interval_in_ms) |
31 | { | 29 | { |
32 | /* TODO: set up TIMER1 clock settings | 30 | /* TODO: set up TIMER1 clock settings |
@@ -53,16 +51,7 @@ void tick_start(unsigned int interval_in_ms) | |||
53 | void TIMER1(void) | 51 | void TIMER1(void) |
54 | { | 52 | { |
55 | IO_INTC_IRQ0 = INTR_IRQ0_TMR1; | 53 | IO_INTC_IRQ0 = INTR_IRQ0_TMR1; |
56 | |||
57 | int i; | ||
58 | 54 | ||
59 | /* Run through the list of tick tasks */ | 55 | /* Run through the list of tick tasks */ |
60 | for(i = 0; i < MAX_NUM_TICK_TASKS; i++) | 56 | call_tick_tasks(); |
61 | { | ||
62 | if(tick_funcs[i]) | ||
63 | { | ||
64 | tick_funcs[i](); | ||
65 | } | ||
66 | } | ||
67 | current_tick++; | ||
68 | } | 57 | } |