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/s3c2440/gigabeat-fx/kernel-meg-fx.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/s3c2440/gigabeat-fx/kernel-meg-fx.c')
-rw-r--r-- | firmware/target/arm/s3c2440/gigabeat-fx/kernel-meg-fx.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/firmware/target/arm/s3c2440/gigabeat-fx/kernel-meg-fx.c b/firmware/target/arm/s3c2440/gigabeat-fx/kernel-meg-fx.c index 4f878d4ed3..76917c8c82 100644 --- a/firmware/target/arm/s3c2440/gigabeat-fx/kernel-meg-fx.c +++ b/firmware/target/arm/s3c2440/gigabeat-fx/kernel-meg-fx.c | |||
@@ -24,8 +24,6 @@ | |||
24 | #include "timer.h" | 24 | #include "timer.h" |
25 | #include "thread.h" | 25 | #include "thread.h" |
26 | 26 | ||
27 | extern void (*tick_funcs[MAX_NUM_TICK_TASKS])(void); | ||
28 | |||
29 | void tick_start(unsigned int interval_in_ms) | 27 | void tick_start(unsigned int interval_in_ms) |
30 | { | 28 | { |
31 | /* | 29 | /* |
@@ -62,18 +60,8 @@ void tick_start(unsigned int interval_in_ms) | |||
62 | 60 | ||
63 | void TIMER4(void) | 61 | void TIMER4(void) |
64 | { | 62 | { |
65 | int i; | ||
66 | |||
67 | /* Run through the list of tick tasks */ | 63 | /* Run through the list of tick tasks */ |
68 | for(i = 0; i < MAX_NUM_TICK_TASKS; i++) | 64 | call_tick_tasks(); |
69 | { | ||
70 | if(tick_funcs[i]) | ||
71 | { | ||
72 | tick_funcs[i](); | ||
73 | } | ||
74 | } | ||
75 | |||
76 | current_tick++; | ||
77 | 65 | ||
78 | SRCPND = TIMER4_MASK; | 66 | SRCPND = TIMER4_MASK; |
79 | INTPND = TIMER4_MASK; | 67 | INTPND = TIMER4_MASK; |