Skip to content
Permalink
Browse files
ANDROID: __migrate_task header
__migrate_task is used by modules to move tasks between cpus.
This function is needed by modules and is currently exported,
allowing it to be used.

As part of this, there was a change so this is no longer static.
This causes a warning, due to a missed extern available in the
scheduler header file.

Correct the issue to cleanup the warning, and properly reference
__migrate_task through the appropriate header file.

Bug: 205164003
Change-Id: Ifb194108cec34467315f43858ebeae428b2e34f0
Signed-off-by: Stephen Dickey <quic_dickey@quicinc.com>
  • Loading branch information
Stephen Dickey authored and toddkjos committed Jan 24, 2022
1 parent 5d83118 commit 50f5345c8756129044a3246800f51f04ae2f55b0
Showing 1 changed file with 8 additions and 0 deletions.
@@ -1546,6 +1546,14 @@ struct rq_flags {
#endif
};

#ifdef CONFIG_SMP
extern struct rq *__migrate_task(struct rq *rq, struct rq_flags *rf,
struct task_struct *p, int dest_cpu);
#else /* !CONFIG_SMP */
static inline rq *__migrate_task(struct rq *rq, struct rq_flags *rf,
struct task_struct *p, int dest_cpu) { return rq; }
#endif

extern struct callback_head balance_push_callback;

/*

0 comments on commit 50f5345

Please sign in to comment.