diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2008-01-19 13:47:26 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2008-01-19 13:47:26 +0000 |
commit | 608c547aa1812de4d9e41ad34eb686c45d404e9d (patch) | |
tree | 63947f7120a9fe82ed0635eaf1e69833dbc5640f /firmware/thread.c | |
parent | 468434811d3ed16e51c835065fbe2453a993f7e1 (diff) | |
download | rockbox-608c547aa1812de4d9e41ad34eb686c45d404e9d.tar.gz rockbox-608c547aa1812de4d9e41ad34eb686c45d404e9d.zip |
Fix warnings. Remove a now unneeded parameter macro from run_blocking_ops.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16109 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/thread.c')
-rw-r--r-- | firmware/thread.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/firmware/thread.c b/firmware/thread.c index 96088bec72..ca6c64039e 100644 --- a/firmware/thread.c +++ b/firmware/thread.c | |||
@@ -144,9 +144,11 @@ static void core_schedule_wakeup(struct thread_entry *thread) | |||
144 | static inline void core_perform_wakeup(IF_COP_VOID(unsigned int core)) | 144 | static inline void core_perform_wakeup(IF_COP_VOID(unsigned int core)) |
145 | __attribute__((always_inline)); | 145 | __attribute__((always_inline)); |
146 | 146 | ||
147 | #if NUM_CORES > 1 | ||
147 | static inline void run_blocking_ops( | 148 | static inline void run_blocking_ops( |
148 | IF_COP_VOID(unsigned int core, struct thread_entry *thread)) | 149 | unsigned int core, struct thread_entry *thread) |
149 | __attribute__((always_inline)); | 150 | __attribute__((always_inline)); |
151 | #endif | ||
150 | 152 | ||
151 | static void thread_stkov(struct thread_entry *thread) | 153 | static void thread_stkov(struct thread_entry *thread) |
152 | __attribute__((noinline)); | 154 | __attribute__((noinline)); |
@@ -1361,7 +1363,7 @@ static void check_tmo_threads(void) | |||
1361 | */ | 1363 | */ |
1362 | #if NUM_CORES > 1 | 1364 | #if NUM_CORES > 1 |
1363 | static inline void run_blocking_ops( | 1365 | static inline void run_blocking_ops( |
1364 | IF_COP_VOID(unsigned int core, struct thread_entry *thread)) | 1366 | unsigned int core, struct thread_entry *thread) |
1365 | { | 1367 | { |
1366 | struct thread_blk_ops *ops = &cores[IF_COP_CORE(core)].blk_ops; | 1368 | struct thread_blk_ops *ops = &cores[IF_COP_CORE(core)].blk_ops; |
1367 | const unsigned flags = ops->flags; | 1369 | const unsigned flags = ops->flags; |
@@ -1600,7 +1602,7 @@ void switch_thread(struct thread_entry *old) | |||
1600 | 1602 | ||
1601 | #if NUM_CORES > 1 | 1603 | #if NUM_CORES > 1 |
1602 | /* Run any blocking operations requested before switching/sleeping */ | 1604 | /* Run any blocking operations requested before switching/sleeping */ |
1603 | run_blocking_ops(IF_COP(core, old)); | 1605 | run_blocking_ops(core, old); |
1604 | #endif | 1606 | #endif |
1605 | 1607 | ||
1606 | /* Go through the list of sleeping task to check if we need to wake up | 1608 | /* Go through the list of sleeping task to check if we need to wake up |