mirror of
https://github.com/torvalds/linux.git
synced 2024-12-02 09:01:34 +00:00
4ff8f2ca6c
Remove all headers, except the ones required to make this header build standalone. Also include stats.h in sched.h explicitly - dependencies already require this. Summary of the build speedup gained through the last ~15 scheduler build & header dependency patches: Cumulative scheduler (kernel/sched/) build time speedup on a Linux distribution's config, which enables all scheduler features, compared to the vanilla kernel: _____________________________________________________________________________ | | Vanilla kernel (v5.13-rc7): |_____________________________________________________________________________ | | Performance counter stats for 'make -j96 kernel/sched/' (3 runs): | | 126,975,564,374 instructions # 1.45 insn per cycle ( +- 0.00% ) | 87,637,847,671 cycles # 3.959 GHz ( +- 0.30% ) | 22,136.96 msec cpu-clock # 7.499 CPUs utilized ( +- 0.29% ) | | 2.9520 +- 0.0169 seconds time elapsed ( +- 0.57% ) |_____________________________________________________________________________ | | Patched kernel: |_____________________________________________________________________________ | | Performance counter stats for 'make -j96 kernel/sched/' (3 runs): | | 50,420,496,914 instructions # 1.47 insn per cycle ( +- 0.00% ) | 34,234,322,038 cycles # 3.946 GHz ( +- 0.31% ) | 8,675.81 msec cpu-clock # 3.053 CPUs utilized ( +- 0.45% ) | | 2.8420 +- 0.0181 seconds time elapsed ( +- 0.64% ) |_____________________________________________________________________________ Summary: - CPU time used to build the scheduler dropped by -60.9%, a reduction from 22.1 clock-seconds to 8.7 clock-seconds. - Wall-clock time to build the scheduler dropped by -3.9%, a reduction from 2.95 seconds to 2.84 seconds. Signed-off-by: Ingo Molnar <mingo@kernel.org> Reviewed-by: Peter Zijlstra <peterz@infradead.org>
53 lines
1.1 KiB
C
53 lines
1.1 KiB
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* These are the scheduling policy related scheduler files, built
|
|
* in a single compilation unit for build efficiency reasons.
|
|
*
|
|
* ( Incidentally, the size of the compilation unit is roughly
|
|
* comparable to core.c and fair.c, the other two big
|
|
* compilation units. This helps balance build time, while
|
|
* coalescing source files to amortize header inclusion
|
|
* cost. )
|
|
*
|
|
* core.c and fair.c are built separately.
|
|
*/
|
|
|
|
/* Headers: */
|
|
#include <linux/sched/clock.h>
|
|
#include <linux/sched/cputime.h>
|
|
#include <linux/sched/posix-timers.h>
|
|
#include <linux/sched/rt.h>
|
|
|
|
#include <linux/cpuidle.h>
|
|
#include <linux/jiffies.h>
|
|
#include <linux/livepatch.h>
|
|
#include <linux/psi.h>
|
|
#include <linux/seqlock_api.h>
|
|
#include <linux/slab.h>
|
|
#include <linux/suspend.h>
|
|
#include <linux/tsacct_kern.h>
|
|
#include <linux/vtime.h>
|
|
|
|
#include <uapi/linux/sched/types.h>
|
|
|
|
#include "sched.h"
|
|
|
|
#include "autogroup.h"
|
|
#include "stats.h"
|
|
#include "pelt.h"
|
|
|
|
/* Source code modules: */
|
|
|
|
#include "idle.c"
|
|
|
|
#include "rt.c"
|
|
|
|
#ifdef CONFIG_SMP
|
|
# include "cpudeadline.c"
|
|
# include "pelt.c"
|
|
#endif
|
|
|
|
#include "cputime.c"
|
|
#include "deadline.c"
|
|
|