Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1576969 > unrolled thread
| Started by | Ingo Molnar <mingo@kernel.org> |
|---|---|
| First post | 2017-02-08 20:30 +0100 |
| Last post | 2017-02-08 22:40 +0100 |
| Articles | 4 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH 00/35] sched.h modernization -v2, phase #4: "Remove header dependencies" Ingo Molnar <mingo@kernel.org> - 2017-02-08 20:30 +0100
[PATCH 24/35] sched/headers: Remove the runqueue_is_locked() prototype Ingo Molnar <mingo@kernel.org> - 2017-02-08 20:30 +0100
[PATCH 02/35] sched/headers: Remove tsk_is_polling() Ingo Molnar <mingo@kernel.org> - 2017-02-08 21:00 +0100
[PATCH 11/35] sched/headers: Remove <linux/sched.h> from <linux/sched/user.h> Ingo Molnar <mingo@kernel.org> - 2017-02-08 22:40 +0100
| From | Ingo Molnar <mingo@kernel.org> |
|---|---|
| Date | 2017-02-08 20:30 +0100 |
| Subject | [PATCH 00/35] sched.h modernization -v2, phase #4: "Remove header dependencies" |
| Message-ID | <t8FMS-4eP-3@gated-at.bofh.it> |
This is phase #4 of the sched.h modernization series.
These remove header #include lines and remove prototypes and thus shrink the
header dependency graph monotonically to the desired end result. These are
small patches but most breakage will likely bisect to these, so their
finegrained split-up is useful as well.
See the announcement for more details:
https://lkml.org/lkml/2017/2/8/564
The Git tree can be found at:
git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.sched/core
Thanks,
Ingo
Ingo Molnar (35):
sched/headers: Remove <linux/sched.h> from <linux/sched/topology.h>
sched/headers: Remove tsk_is_polling()
sched/headers: Remove <linux/sched.h> from <linux/sched/wake_q.h>
sched/headers: Remove <linux/sched.h> from <linux/sched/clock.h>
sched/headers: Remove <linux/sched.h> and <linux/slab.h> from <linux/delayacct.h>
sched/headers: Remove <linux/sched.h> from <linux/sched/loadavg.h>
sched/headers: Remove <linux/sched.h> from <linux/sched/autogroup.h>
sched/headers: Remove <linux/sched.h> from <linux/sched/mm.h>
sched/headers: Remove <linux/sched.h> from <linux/sched/coredump.h>
sched/headers: Remove unused 'task_can_switch_user()' prototype
sched/headers: Remove <linux/sched.h> from <linux/sched/user.h>
sched/headers: Remove #include <linux/capability.h> from <linux/sched.h>
sched/headers: Remove <linux/cgroup-defs.h> from <linux/sched.h>
sched/headers: Remove <linux/sched.h> from <linux/sched/cpufreq.h>
kasan, sched/headers: Remove <linux/sched.h> from <linux/kasan.h>
sched/headers: Remove <linux/cred.h> inclusion from <linux/sched.h>
sched/headers: Remove <asm/ptrace.h> from <linux/sched.h>
sched/headers: Remove <linux/rtmutex.h> from <linux/sched.h>
sched/headers: Remove the <linux/gfp.h> include from <linux/sched.h>
sched/headers: Remove <linux/sched.h> from <linux/sched/stat.h>
sched/headers: Remove <linux/sched.h> from <linux/sched/nohz.h>
sched/headers: Remove <linux/sched.h> from <linux/sched/debug.h>
sched/headers: Remove <linux/sched.h> from <linux/sched/hotplug.h>
sched/headers: Remove the runqueue_is_locked() prototype
sched/headers: Remove <linux/rwsem.h> from <linux/sched.h>
sched/headers: Remove <linux/signal.h> from <linux/sched.h>
sched/headers: Remove the 'init_pid_ns' prototype from <linux/sched.h>
sched/headers: Remove <linux/rculist.h> from <linux/sched.h>
sched/core: Remove unused prefetch_stack()
sched/headers: Remove <linux/sched.h> from <linux/sched/init.h>
sched/headers: Remove <linux/magic.h> from <linux/sched/task_stack.h>
sched/headers, timers: Remove the <linux/sysctl.h> include from <linux/timer.h>
sched/headers, x86/apic: Remove the <linux/pm.h> header inclusion from <asm/apic.h>
sched/headers, hrtimer: Remove the <linux/wait.h> include from <linux/hrtimer.h>
sched/headers: Remove the <linux/topology.h> include from <linux/sched.h>
arch/ia64/include/asm/processor.h | 2 --
arch/ia64/kernel/entry.S | 23 -----------------------
arch/x86/include/asm/apic.h | 1 -
include/linux/delayacct.h | 2 --
include/linux/hrtimer.h | 1 -
include/linux/kasan.h | 1 -
include/linux/sched.h | 32 ++------------------------------
include/linux/sched/autogroup.h | 3 +--
include/linux/sched/clock.h | 2 +-
include/linux/sched/coredump.h | 1 -
include/linux/sched/cpufreq.h | 2 +-
include/linux/sched/debug.h | 2 --
include/linux/sched/hotplug.h | 2 --
include/linux/sched/idle.h | 5 -----
include/linux/sched/init.h | 2 --
include/linux/sched/loadavg.h | 2 --
include/linux/sched/mm.h | 2 ++
include/linux/sched/nohz.h | 2 --
include/linux/sched/stat.h | 2 +-
include/linux/sched/topology.h | 7 ++++++-
include/linux/sched/user.h | 3 ++-
include/linux/sched/wake_q.h | 5 +++--
include/linux/timer.h | 2 +-
include/linux/user_namespace.h | 2 ++
include/target/target_core_base.h | 1 +
kernel/utsname_sysctl.c | 1 +
26 files changed, 24 insertions(+), 86 deletions(-)
--
2.7.4
[toc] | [next] | [standalone]
| From | Ingo Molnar <mingo@kernel.org> |
|---|---|
| Date | 2017-02-08 20:30 +0100 |
| Subject | [PATCH 24/35] sched/headers: Remove the runqueue_is_locked() prototype |
| Message-ID | <t8G6d-4lX-19@gated-at.bofh.it> |
| In reply to | #1576969 |
Remove the runqueue_is_locked() prototype, the function does not exist anymore. Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@kernel.org> --- include/linux/sched.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/sched.h b/include/linux/sched.h index 45a4d10dffd1..fa722c4c18a3 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -172,8 +172,6 @@ struct uts_namespace; extern cpumask_var_t cpu_isolated_map; -extern int runqueue_is_locked(int cpu); - extern void scheduler_tick(void); #define MAX_SCHEDULE_TIMEOUT LONG_MAX -- 2.7.4
[toc] | [prev] | [next] | [standalone]
| From | Ingo Molnar <mingo@kernel.org> |
|---|---|
| Date | 2017-02-08 21:00 +0100 |
| Subject | [PATCH 02/35] sched/headers: Remove tsk_is_polling() |
| Message-ID | <t8Gzg-4w9-5@gated-at.bofh.it> |
| In reply to | #1576969 |
It's not used by anything.
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
include/linux/sched/idle.h | 5 -----
1 file changed, 5 deletions(-)
diff --git a/include/linux/sched/idle.h b/include/linux/sched/idle.h
index 66ee32f87f0b..5ca63ebad6b4 100644
--- a/include/linux/sched/idle.h
+++ b/include/linux/sched/idle.h
@@ -17,10 +17,6 @@ extern void wake_up_if_idle(int cpu);
* polling state.
*/
#ifdef TIF_POLLING_NRFLAG
-static inline int tsk_is_polling(struct task_struct *p)
-{
- return test_tsk_thread_flag(p, TIF_POLLING_NRFLAG);
-}
static inline void __current_set_polling(void)
{
@@ -59,7 +55,6 @@ static inline bool __must_check current_clr_polling_and_test(void)
}
#else
-static inline int tsk_is_polling(struct task_struct *p) { return 0; }
static inline void __current_set_polling(void) { }
static inline void __current_clr_polling(void) { }
--
2.7.4
[toc] | [prev] | [next] | [standalone]
| From | Ingo Molnar <mingo@kernel.org> |
|---|---|
| Date | 2017-02-08 22:40 +0100 |
| Subject | [PATCH 11/35] sched/headers: Remove <linux/sched.h> from <linux/sched/user.h> |
| Message-ID | <t8I83-5Aj-47@gated-at.bofh.it> |
| In reply to | #1576969 |
If we add <linux/uidgid.h> then <linux/sched/user.h> becomes a self-contained header and users of it either don't need <linux/sched.h> or have already included it. This reduces the size of the header dependency graph. Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@kernel.org> --- include/linux/sched/user.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/sched/user.h b/include/linux/sched/user.h index c3824e6780e5..47600dd62ded 100644 --- a/include/linux/sched/user.h +++ b/include/linux/sched/user.h @@ -1,7 +1,8 @@ #ifndef _LINUX_SCHED_USER_H #define _LINUX_SCHED_USER_H -#include <linux/sched.h> +#include <linux/uidgid.h> +#include <linux/atomic.h> struct key; -- 2.7.4
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web