Skip to content

Commit

Permalink
workqueue: rename kernel/workqueue_sched.h to kernel/workqueue_intern…
Browse files Browse the repository at this point in the history
…al.h

Workqueue wants to expose more interface internal to kernel/.  Instead
of adding a new header file, repurpose kernel/workqueue_sched.h.
Rename it to workqueue_internal.h and add include protector.

This patch doesn't introduce any functional changes.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
  • Loading branch information
Tejun Heo committed Jan 18, 2013
1 parent 111c225 commit ea13844
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 11 deletions.
2 changes: 1 addition & 1 deletion kernel/sched/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
#endif

#include "sched.h"
#include "../workqueue_sched.h"
#include "../workqueue_internal.h"
#include "../smpboot.h"

#define CREATE_TRACE_POINTS
Expand Down
2 changes: 1 addition & 1 deletion kernel/workqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#include <linux/idr.h>
#include <linux/hashtable.h>

#include "workqueue_sched.h"
#include "workqueue_internal.h"

enum {
/*
Expand Down
18 changes: 18 additions & 0 deletions kernel/workqueue_internal.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* kernel/workqueue_internal.h
*
* Workqueue internal header file. Only to be included by workqueue and
* core kernel subsystems.
*/
#ifndef _KERNEL_WORKQUEUE_INTERNAL_H
#define _KERNEL_WORKQUEUE_INTERNAL_H

/*
* Scheduler hooks for concurrency managed workqueue. Only to be used from
* sched.c and workqueue.c.
*/
void wq_worker_waking_up(struct task_struct *task, unsigned int cpu);
struct task_struct *wq_worker_sleeping(struct task_struct *task,
unsigned int cpu);

#endif /* _KERNEL_WORKQUEUE_INTERNAL_H */
9 changes: 0 additions & 9 deletions kernel/workqueue_sched.h

This file was deleted.

0 comments on commit ea13844

Please sign in to comment.