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
This commit is contained in:
parent
468434811d
commit
608c547aa1
1 changed files with 5 additions and 3 deletions
|
@ -144,9 +144,11 @@ static void core_schedule_wakeup(struct thread_entry *thread)
|
||||||
static inline void core_perform_wakeup(IF_COP_VOID(unsigned int core))
|
static inline void core_perform_wakeup(IF_COP_VOID(unsigned int core))
|
||||||
__attribute__((always_inline));
|
__attribute__((always_inline));
|
||||||
|
|
||||||
|
#if NUM_CORES > 1
|
||||||
static inline void run_blocking_ops(
|
static inline void run_blocking_ops(
|
||||||
IF_COP_VOID(unsigned int core, struct thread_entry *thread))
|
unsigned int core, struct thread_entry *thread)
|
||||||
__attribute__((always_inline));
|
__attribute__((always_inline));
|
||||||
|
#endif
|
||||||
|
|
||||||
static void thread_stkov(struct thread_entry *thread)
|
static void thread_stkov(struct thread_entry *thread)
|
||||||
__attribute__((noinline));
|
__attribute__((noinline));
|
||||||
|
@ -1361,7 +1363,7 @@ static void check_tmo_threads(void)
|
||||||
*/
|
*/
|
||||||
#if NUM_CORES > 1
|
#if NUM_CORES > 1
|
||||||
static inline void run_blocking_ops(
|
static inline void run_blocking_ops(
|
||||||
IF_COP_VOID(unsigned int core, struct thread_entry *thread))
|
unsigned int core, struct thread_entry *thread)
|
||||||
{
|
{
|
||||||
struct thread_blk_ops *ops = &cores[IF_COP_CORE(core)].blk_ops;
|
struct thread_blk_ops *ops = &cores[IF_COP_CORE(core)].blk_ops;
|
||||||
const unsigned flags = ops->flags;
|
const unsigned flags = ops->flags;
|
||||||
|
@ -1600,7 +1602,7 @@ void switch_thread(struct thread_entry *old)
|
||||||
|
|
||||||
#if NUM_CORES > 1
|
#if NUM_CORES > 1
|
||||||
/* Run any blocking operations requested before switching/sleeping */
|
/* Run any blocking operations requested before switching/sleeping */
|
||||||
run_blocking_ops(IF_COP(core, old));
|
run_blocking_ops(core, old);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Go through the list of sleeping task to check if we need to wake up
|
/* Go through the list of sleeping task to check if we need to wake up
|
||||||
|
|
Loading…
Reference in a new issue