blob: 21fb5a5662b51a46ce08f91b586a1d44810d0012 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Peter Zijlstra391e43d2011-11-15 17:14:39 +01002ifdef CONFIG_FUNCTION_TRACER
Heiko Carstensc0a80c02015-01-09 13:06:33 +01003CFLAGS_REMOVE_clock.o = $(CC_FLAGS_FTRACE)
Peter Zijlstra391e43d2011-11-15 17:14:39 +01004endif
5
Dmitry Vyukov5c9a8752016-03-22 14:27:30 -07006# These files are disabled because they produce non-interesting flaky coverage
7# that is not a function of syscall inputs. E.g. involuntary context switches.
8KCOV_INSTRUMENT := n
9
Peter Zijlstra391e43d2011-11-15 17:14:39 +010010ifneq ($(CONFIG_SCHED_OMIT_FRAME_POINTER),y)
11# According to Alan Modra <alan@linuxcare.com.au>, the -fno-omit-frame-pointer is
12# needed for x86 only. Why this used to be enabled for all architectures is beyond
13# me. I suspect most platforms don't need this, but until we know that for sure
14# I turn this off for IA-64 only. Andreas Schwab says it's also needed on m68k
15# to get a correct value for the wait-channel (WCHAN in ps). --davidm
16CFLAGS_core.o := $(PROFILING) -fno-omit-frame-pointer
17endif
18
Peter Zijlstra3289bdb2015-04-14 13:19:42 +020019obj-y += core.o loadavg.o clock.o cputime.o
Ingo Molnara92057e2018-03-03 15:44:39 +010020obj-y += idle.o fair.o rt.o deadline.o
21obj-y += wait.o wait_bit.o swait.o completion.o
22
Vincent Guittotc0796292018-06-28 17:45:04 +020023obj-$(CONFIG_SMP) += cpupri.o cpudeadline.o topology.o stop_task.o pelt.o
Ingo Molnar10514082017-02-01 18:42:41 +010024obj-$(CONFIG_SCHED_AUTOGROUP) += autogroup.o
Peter Zijlstra391e43d2011-11-15 17:14:39 +010025obj-$(CONFIG_SCHEDSTATS) += stats.o
26obj-$(CONFIG_SCHED_DEBUG) += debug.o
Li Zefan2e76c242013-03-29 14:36:31 +080027obj-$(CONFIG_CGROUP_CPUACCT) += cpuacct.o
Rafael J. Wysockiadaf9fc2016-03-10 20:44:47 +010028obj-$(CONFIG_CPU_FREQ) += cpufreq.o
Rafael J. Wysocki9bdcb442016-04-02 01:09:12 +020029obj-$(CONFIG_CPU_FREQ_GOV_SCHEDUTIL) += cpufreq_schedutil.o
Mathieu Desnoyers22e4ebb2017-07-28 16:40:40 -040030obj-$(CONFIG_MEMBARRIER) += membarrier.o
Frederic Weisbecker5c4991e2017-10-27 04:42:34 +020031obj-$(CONFIG_CPU_ISOLATION) += isolation.o
Johannes Weinereb414682018-10-26 15:06:27 -070032obj-$(CONFIG_PSI) += psi.o