blob: 5fc9c9b70862f72486b4b6e57711d530ceaeca18 [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
Ingo Molnar5cbaefe2019-11-20 10:41:43 +010010# There are numerous data races here, however, most of them are due to plain accesses.
Marco Elver0ebba712019-11-14 19:02:58 +010011# This would make it even harder for syzbot to find reproducers, because these
12# bugs trigger without specific input. Disable by default, but should re-enable
13# eventually.
14KCSAN_SANITIZE := n
15
Peter Zijlstra391e43d2011-11-15 17:14:39 +010016ifneq ($(CONFIG_SCHED_OMIT_FRAME_POINTER),y)
17# According to Alan Modra <alan@linuxcare.com.au>, the -fno-omit-frame-pointer is
18# needed for x86 only. Why this used to be enabled for all architectures is beyond
19# me. I suspect most platforms don't need this, but until we know that for sure
20# I turn this off for IA-64 only. Andreas Schwab says it's also needed on m68k
21# to get a correct value for the wait-channel (WCHAN in ps). --davidm
22CFLAGS_core.o := $(PROFILING) -fno-omit-frame-pointer
23endif
24
Peter Zijlstra3289bdb2015-04-14 13:19:42 +020025obj-y += core.o loadavg.o clock.o cputime.o
Ingo Molnara92057e2018-03-03 15:44:39 +010026obj-y += idle.o fair.o rt.o deadline.o
27obj-y += wait.o wait_bit.o swait.o completion.o
28
Vincent Guittotc0796292018-06-28 17:45:04 +020029obj-$(CONFIG_SMP) += cpupri.o cpudeadline.o topology.o stop_task.o pelt.o
Ingo Molnar10514082017-02-01 18:42:41 +010030obj-$(CONFIG_SCHED_AUTOGROUP) += autogroup.o
Peter Zijlstra391e43d2011-11-15 17:14:39 +010031obj-$(CONFIG_SCHEDSTATS) += stats.o
32obj-$(CONFIG_SCHED_DEBUG) += debug.o
Li Zefan2e76c242013-03-29 14:36:31 +080033obj-$(CONFIG_CGROUP_CPUACCT) += cpuacct.o
Rafael J. Wysockiadaf9fc2016-03-10 20:44:47 +010034obj-$(CONFIG_CPU_FREQ) += cpufreq.o
Rafael J. Wysocki9bdcb442016-04-02 01:09:12 +020035obj-$(CONFIG_CPU_FREQ_GOV_SCHEDUTIL) += cpufreq_schedutil.o
Mathieu Desnoyers22e4ebb2017-07-28 16:40:40 -040036obj-$(CONFIG_MEMBARRIER) += membarrier.o
Frederic Weisbecker5c4991e2017-10-27 04:42:34 +020037obj-$(CONFIG_CPU_ISOLATION) += isolation.o
Johannes Weinereb414682018-10-26 15:06:27 -070038obj-$(CONFIG_PSI) += psi.o