Skip to content

sched.h modernization -v2, phase #3: "Move definitions between headers"

Ingo Molnar lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest53 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/53sched/headers: Move scheduler topology interfaces to <linux/sched/topology.h>include/linux/sched.h include/linux/sched/topology.h+213 -2120 replies
2/53sched/headers: Move the 'cpu_idle_type' enum from <linux/sched.h> to <linux/sched/idle.h>include/linux/sched.h include/linux/sched/idle.h+7 -70 replies
3/53sched/headers: Move the wake_up_if_idle() prototype to <linux/sched/idle.h>include/linux/sched.h include/linux/sched/idle.h+2 -20 replies
4/53sched/headers: Move idle polling methods to <linux/sched/idle.h>include/linux/sched.h include/linux/sched/idle.h+76 -760 replies
5/53sched/headers: Move the wake-queue types and interfaces from sched.h into <linux/sched/wake_q.h>include/linux/sched.h include/linux/sched/wake_q.h+50 -500 replies
6/53sched/headers: Move scheduler clock interfaces to <linux/sched/clock.h>include/linux/sched.h include/linux/sched/clock.h+98 -1000 replies
7/53sched/headers, delayacct: Move the 'struct task_delay_info' definition from <linux/sched.h> to <linux/delayacct.h>include/linux/delayacct.h include/linux/sched.h+40 -350 replies
8/53sched/headers: Move various ABI definitions to <uapi/linux/sched/types.h>include/linux/sched.h include/uapi/linux/sched/types.h+70 -680 replies
9/53sched/headers: Move loadavg related definitions from <linux/sched.h> to <linux/sched/loadavg.h>include/linux/sched.h include/linux/sched/loadavg.h+27 -270 replies
10/53sched/headers: Move autogroup APIs into <linux/sched/autogroup.h>include/linux/sched.h include/linux/sched/autogroup.h+21 -180 replies
11/53sched/headers: Move task->mm handling methods to <linux/sched/mm.h>include/linux/sched.h include/linux/sched/mm.h+52 -520 replies
12/53sched/headers: Move task->mm coredumping related defines and methods from <linux/sched.h> to <linux/sched/coredump.h>include/linux/sched.h include/linux/sched/coredump.h+69 -680 replies
13/53sched/headers: Move task_struct::signal and task_struct::sighand types and accessors into <linux/sched/signal.h>include/linux/sched.h include/linux/sched/signal.h+502 -4930 replies
14/53sched/headers: Move 'struct user_struct' definition and APIs to the new <linux/sched/user.h> headerinclude/linux/sched.h include/linux/sched/user.h+58 -572 replies
15/53sched/headers: Move softlockup detector watchdog methods to <linux/nmi.h>include/linux/nmi.h include/linux/sched.h+37 -370 replies
16/53sched/headers: Move 'struct pacct_struct' and 'struct cpu_itimer' form <linux/sched.h> to <linux/sched/signal.h>include/linux/sched.h include/linux/sched/signal.h+16 -130 replies
17/53sched/headers: Move the cpufreq interfaces to <linux/sched/cpufreq.h>include/linux/sched.h include/linux/sched/cpufreq.h+21 -170 replies
18/53sched/headers: Move more mm_struct related functionality from <linux/sched.h> to <linux/sched/mm.h>include/linux/sched.h include/linux/sched/mm.h+21 -210 replies
19/53sched/headers: Move the 'init_mm' declaration from <linux/sched.h> to <linux/mm_types.h>include/linux/mm_types.h include/linux/sched.h+2 -20 replies
20/53sched/headers: Move in_vfork() from <linux/sched.h> to <linux/sched/mm.h>include/linux/sched.h include/linux/sched/mm.h+26 -260 replies
21/53sched/headers: Move the NUMA balancing interfaces from <linux/sched.h> to <linux/sched/numa_balancing.h>include/linux/sched.h include/linux/sched/numa_balancing.h+40 -350 replies
22/53sched/headers: Move the JOBCTL_ defines and methods from <linux/sched.h> to <linux/sched/jobctl.h>include/linux/sched.h include/linux/sched/jobctl.h+32 -300 replies
23/53sched/headers: Remove various unrelated headers from <linux/sched.h>include/linux/sched.h+0 -280 replies
24/53sched/headers: Move CONFIG_TASK_XACCT bits from <linux/sched.h> to <linux/sched/xacct.h>include/linux/sched.h include/linux/sched/xacct.h+42 -380 replies
25/53sched/headers: Move signal wakeup & sigpending methods from <linux/sched.h> into <linux/sched/signal.h>include/linux/sched.h include/linux/sched/signal.h+52 -520 replies
26/53sched/headers: Move the memalloc_noio_*() APIs to <linux/sched/mm.h>include/linux/sched.h include/linux/sched/mm.h+22 -220 replies
27/53sched/headers: Move task statistics APIs from <linux/sched.h> to <linux/sched/stat.h>include/linux/sched.h include/linux/sched/stat.h+18 -100 replies
28/53sched/headers: Move the NOHZ APIs from <linux/sched.h> to <linux/sched/nohz.h>include/linux/sched.h include/linux/sched/nohz.h+39 -350 replies
29/53sched/headers: Move debugging functions from <linux/sched.h> to <linux/sched/debug.h>include/linux/sched.h include/linux/sched/debug.h+46 -360 replies
30/53sched/headers, time/timekeeping: Move the xtime_update() prototype from <linux/sched.h> to <linux/time.h>include/linux/sched.h include/linux/time.h+2 -20 replies
31/53sched/headers: Move <asm/current.h> include from the middle of <linux/sched.h> to the header portioninclude/linux/sched.h+2 -20 replies
32/53sched/headers: Split hotplug CPU interfaces out of <linux/sched.h> into <linux/sched/hotplug.h>include/linux/sched.h include/linux/sched/hotplug.h+20 -150 replies
33/53sched/headers: Move task lifetime APIs from <linux/sched.h> to <linux/sched/task.h>include/linux/sched.h include/linux/sched/task.h+97 -910 replies
34/53sched/headers, RCU: Move rcu_copy_process() from <linux/sched/task.h> to kernel/fork.cinclude/linux/sched/task.h kernel/fork.c+15 -150 replies
35/53sched/core: Move, sort and clean up <linux/sched.h> structure predeclarationsinclude/linux/sched.h+23 -330 replies
36/53sched/headers: Move the PREEMPT_COUNT defines from <linux/sched.h> to <linux/preempt.h>include/linux/preempt.h include/linux/sched.h+21 -210 replies
37/53sched/headers: Move task-stack related APIs from <linux/sched.h> to <linux/sched/task_stack.h>include/linux/sched.h include/linux/sched/task_stack.h+113 -1060 replies
38/53sched/headers: Move the 'root_task_group' declaration to <linux/sched/autogroup.h>include/linux/init_task.h include/linux/sched.h include/linux/sched/autogroup.h+5 -60 replies
39/53signals: Move signal data types from <linux/signal.h> to <linux/signal_types.h>include/linux/signal.h include/linux/signal_types.h+59 -540 replies
40/53mm/headers, sched/headers: Move task related MM types from <linux/mm_types.> to <linux/mm_types_task.h>include/linux/mm_types.h include/linux/mm_types_task.h+55 -490 replies
41/53sched/headers: Remove the <linux/mm_types.h> dependency from <linux/sched.h>include/linux/sched.h+1 -10 replies
42/53sched/headers: Move 'init_task' and 'init_thread_union' from <linux/sched.h> to <linux/sched/task.h>include/linux/sched.h include/linux/sched/task.h+6 -30 replies
43/53sched/headers: Move the task_lock()/unlock() APIs to <linux/sched/task.h>include/linux/sched.h include/linux/sched/task.h+20 -200 replies
44/53sched/headers: Move cputime functionality from <linux/sched.h> and <linux/cputime.h> into <linux/sched/cputime.h>include/linux/cputime.h include/linux/sched.h include/linux/sched/cputime.h +2 more+214 -2140 replies
45/53sched/headers: Move sched_info_on() and force_schedstat_enabled() from <linux/sched.h> to <linux/sched/stat.h>include/linux/sched.h include/linux/sched/stat.h+16 -160 replies
46/53sched/headers, vfs/execve: Move the do_execve*() prototypes from <linux/sched.h> to <linux/binfmts.h>include/linux/binfmts.h include/linux/sched.h+10 -80 replies
47/53sched/headers: Move kstack_end() from <linux/sched.h> to <linux/sched/task_stack.h>include/linux/sched.h include/linux/sched/task_stack.h+10 -100 replies
48/53sched/headers: Move exit_files() and exit_itimers() from <linux/sched.h> to <linux/sched/task.h>include/linux/sched.h include/linux/sched/task.h+3 -40 replies
49/53sched/headers: Move _init() prototypes from <linux/sched.h> to <linux/sched/init.h>include/linux/sched.h include/linux/sched/init.h+7 -50 replies
50/53sched/headers, timekeeping: Move the timer tick function prototypes to <linux/timekeeping.h>include/linux/sched.h include/linux/time.h include/linux/timekeeping.h+4 -30 replies
51/53sched/headers, mm: Move 'struct tlbflush_unmap_batch' from <linux/sched.h> to <linux/mm_types_task.h>include/linux/mm_types_task.h include/linux/sched.h+22 -210 replies
52/53sched/headers: Move the get_task_struct()/put_task_struct() and related APIs from <linux/sched.h> to <linux/sched/task.h>include/linux/sched.h include/linux/sched/task.h+15 -140 replies
53/53sched/headers: Move the sched_exec() prototype to <linux/sched/task.h>include/linux/sched.h include/linux/sched/task.h+7 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/53] sched.h modernization -v2, phase #3: "Move definitions between headers"

This is phase #3 of the sched.h modernization series.

These patches are the meat of the code movement between headers, but they don't actually change the header dependency graph: all code movement is between pre-existing headers and all post-movement header dependencies were already established by the phase #2 preparatory series..

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 (53):
sched/headers: Move scheduler topology interfaces to <linux/sched/topology.h>
sched/headers: Move the 'cpu_idle_type' enum from <linux/sched.h> to <linux/sched/idle.h> sched/headers: Move the wake_up_if_idle() prototype to <linux/sched/idle.h>
sched/headers: Move idle polling methods to <linux/sched/idle.h>
sched/headers: Move the wake-queue types and interfaces from sched.h into <linux/sched/wake_q.h> sched/headers: Move scheduler clock interfaces to <linux/sched/clock.h>
sched/headers, delayacct: Move the 'struct task_delay_info' definition from <linux/sched.h> to <linux/delayacct.h> sched/headers: Move various ABI definitions to <uapi/linux/sched/types.h>
sched/headers: Move loadavg related definitions from <linux/sched.h> to <linux/sched/loadavg.h> sched/headers: Move autogroup APIs into <linux/sched/autogroup.h>
sched/headers: Move task->mm handling methods to <linux/sched/mm.h>
sched/headers: Move task->mm coredumping related defines and methods from <linux/sched.h> to <linux/sched/coredump.h> sched/headers: Move task_struct::signal and task_struct::sighand types and accessors into <linux/sched/signal.h> sched/headers: Move 'struct user_struct' definition and APIs to the new <linux/sched/user.h> header sched/headers: Move softlockup detector watchdog methods to <linux/nmi.h>
sched/headers: Move 'struct pacct_struct' and 'struct cpu_itimer' form <linux/sched.h> to <linux/sched/signal.h> sched/headers: Move the cpufreq interfaces to <linux/sched/cpufreq.h>
sched/headers: Move more mm_struct related functionality from <linux/sched.h> to <linux/sched/mm.h> sched/headers: Move the 'init_mm' declaration from <linux/sched.h> to <linux/mm_types.h> sched/headers: Move in_vfork() from <linux/sched.h> to <linux/sched/mm.h>
sched/headers: Move the NUMA balancing interfaces from <linux/sched.h> to <linux/sched/numa_balancing.h> sched/headers: Move the JOBCTL_ defines and methods from <linux/sched.h> to <linux/sched/jobctl.h> sched/headers: Remove various unrelated headers from <linux/sched.h>
sched/headers: Move CONFIG_TASK_XACCT bits from <linux/sched.h> to <linux/sched/xacct.h> sched/headers: Move signal wakeup & sigpending methods from <linux/sched.h> into <linux/sched/signal.h> sched/headers: Move the memalloc_noio_*() APIs to <linux/sched/mm.h>
sched/headers: Move task statistics APIs from <linux/sched.h> to <linux/sched/stat.h>
sched/headers: Move the NOHZ APIs from <linux/sched.h> to <linux/sched/nohz.h>
sched/headers: Move debugging functions from <linux/sched.h> to <linux/sched/debug.h>
sched/headers, time/timekeeping: Move the xtime_update() prototype from <linux/sched.h> to <linux/time.h> sched/headers: Move <asm/current.h> include from the middle of <linux/sched.h> to the header portion sched/headers: Split hotplug CPU interfaces out of <linux/sched.h> into <linux/sched/hotplug.h> sched/headers: Move task lifetime APIs from <linux/sched.h> to <linux/sched/task.h>
sched/headers, RCU: Move rcu_copy_process() from <linux/sched/task.h> to kernel/fork.c
sched/core: Move, sort and clean up <linux/sched.h> structure predeclarations
sched/headers: Move the PREEMPT_COUNT defines from <linux/sched.h> to <linux/preempt.h> sched/headers: Move task-stack related APIs from <linux/sched.h> to <linux/sched/task_stack.h> sched/headers: Move the 'root_task_group' declaration to <linux/sched/autogroup.h>
signals: Move signal data types from <linux/signal.h> to <linux/signal_types.h>
mm/headers, sched/headers: Move task related MM types from <linux/mm_types.> to <linux/mm_types_task.h> sched/headers: Remove the <linux/mm_types.h> dependency from <linux/sched.h>
sched/headers: Move 'init_task' and 'init_thread_union' from <linux/sched.h> to <linux/sched/task.h> sched/headers: Move the task_lock()/unlock() APIs to <linux/sched/task.h>
sched/headers: Move cputime functionality from <linux/sched.h> and <linux/cputime.h> into <linux/sched/cputime.h> sched/headers: Move sched_info_on() and force_schedstat_enabled() from <linux/sched.h> to <linux/sched/stat.h> sched/headers, vfs/execve: Move the do_execve*() prototypes from <linux/sched.h> to <linux/binfmts.h> sched/headers: Move kstack_end() from <linux/sched.h> to <linux/sched/task_stack.h>
sched/headers: Move exit_files() and exit_itimers() from <linux/sched.h> to <linux/sched/task.h> sched/headers: Move _init() prototypes from <linux/sched.h> to <linux/sched/init.h>
sched/headers, timekeeping: Move the timer tick function prototypes to <linux/timekeeping.h> sched/headers, mm: Move 'struct tlbflush_unmap_batch' from <linux/sched.h> to <linux/mm_types_task.h> sched/headers: Move the get_task_struct()/put_task_struct() and related APIs from <linux/sched.h> to <linux/sched/task.h> sched/headers: Move the sched_exec() prototype to <linux/sched/task.h>

 include/linux/binfmts.h              |   10 +
 include/linux/cputime.h              |   13 -
 include/linux/delayacct.h            |   36 +
 include/linux/init_task.h            |    2 -
 include/linux/mm_types.h             |   51 +-
 include/linux/mm_types_task.h        |   77 ++
 include/linux/nmi.h                  |   37 +
 include/linux/preempt.h              |   21 +
 include/linux/sched.h                | 3903 +++++++++++++-----------------------------------------
 include/linux/sched/autogroup.h      |   26 +
 include/linux/sched/clock.h          |   98 ++
 include/linux/sched/coredump.h       |   69 +
 include/linux/sched/cpufreq.h        |   21 +
 include/linux/sched/cputime.h        |  182 ++-
 include/linux/sched/debug.h          |   46 +
 include/linux/sched/hotplug.h        |   20 +
 include/linux/sched/idle.h           |   85 ++
 include/linux/sched/init.h           |    7 +
 include/linux/sched/jobctl.h         |   32 +
 include/linux/sched/loadavg.h        |   27 +
 include/linux/sched/mm.h             |  121 ++
 include/linux/sched/nohz.h           |   39 +
 include/linux/sched/numa_balancing.h |   40 +
 include/linux/sched/signal.h         |  601 ++++++++-
 include/linux/sched/stat.h           |   34 +
 include/linux/sched/task.h           |  133 ++
 include/linux/sched/task_stack.h     |  114 ++
 include/linux/sched/topology.h       |  213 +++
 include/linux/sched/user.h           |   58 +
 include/linux/sched/wake_q.h         |   50 +
 include/linux/sched/xacct.h          |   42 +
 include/linux/signal.h               |   54 -
 include/linux/signal_types.h         |   59 +
 include/linux/timekeeping.h          |    4 +
 include/uapi/linux/sched/types.h     |   68 +
 kernel/fork.c                        |   15 +
 kernel/sched/stats.h                 |  111 --
 37 files changed, 3289 insertions(+), 3230 deletions(-)
 delete mode 100644 include/linux/cputime.h
Signature · 1 line
2.7.4