@@ -11,6 +11,7 @@
typedef struct __wait_queue wait_queue_t;
typedef int (*wait_queue_func_t)(wait_queue_t *wait, unsigned mode, int flags, void *key);
int default_wake_function(wait_queue_t *wait, unsigned mode, int flags, void *key);
+int try_to_wake_up(struct task_struct *p, unsigned int state, int wake_flags);
struct __wait_queue {
unsigned int flags;
@@ -1425,7 +1425,7 @@ static void ttwu_queue(struct task_struct *p, int cpu)
* Returns %true if @p was woken up, %false if it was already running
* or @state didn't match @p's state.
*/
-static int
+int
try_to_wake_up(struct task_struct *p, unsigned int state, int wake_flags)
{
unsigned long flags;
Not exported, since only used by the fence implementation. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com> --- include/linux/wait.h | 1 + kernel/sched/core.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)