Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Peter Zijlstra | 391e43d | 2011-11-15 17:14:39 +0100 | [diff] [blame] | 2 | ifdef CONFIG_FUNCTION_TRACER |
Heiko Carstens | c0a80c0 | 2015-01-09 13:06:33 +0100 | [diff] [blame] | 3 | CFLAGS_REMOVE_clock.o = $(CC_FLAGS_FTRACE) |
Peter Zijlstra | 391e43d | 2011-11-15 17:14:39 +0100 | [diff] [blame] | 4 | endif |
| 5 | |
Dmitry Vyukov | 5c9a875 | 2016-03-22 14:27:30 -0700 | [diff] [blame] | 6 | # 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. |
| 8 | KCOV_INSTRUMENT := n |
| 9 | |
Ingo Molnar | 5cbaefe | 2019-11-20 10:41:43 +0100 | [diff] [blame] | 10 | # There are numerous data races here, however, most of them are due to plain accesses. |
Marco Elver | 0ebba71 | 2019-11-14 19:02:58 +0100 | [diff] [blame] | 11 | # 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. |
| 14 | KCSAN_SANITIZE := n |
| 15 | |
Peter Zijlstra | 391e43d | 2011-11-15 17:14:39 +0100 | [diff] [blame] | 16 | ifneq ($(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 |
| 22 | CFLAGS_core.o := $(PROFILING) -fno-omit-frame-pointer |
| 23 | endif |
| 24 | |
Peter Zijlstra | 3289bdb | 2015-04-14 13:19:42 +0200 | [diff] [blame] | 25 | obj-y += core.o loadavg.o clock.o cputime.o |
Ingo Molnar | a92057e | 2018-03-03 15:44:39 +0100 | [diff] [blame] | 26 | obj-y += idle.o fair.o rt.o deadline.o |
| 27 | obj-y += wait.o wait_bit.o swait.o completion.o |
| 28 | |
Vincent Guittot | c079629 | 2018-06-28 17:45:04 +0200 | [diff] [blame] | 29 | obj-$(CONFIG_SMP) += cpupri.o cpudeadline.o topology.o stop_task.o pelt.o |
Ingo Molnar | 1051408 | 2017-02-01 18:42:41 +0100 | [diff] [blame] | 30 | obj-$(CONFIG_SCHED_AUTOGROUP) += autogroup.o |
Peter Zijlstra | 391e43d | 2011-11-15 17:14:39 +0100 | [diff] [blame] | 31 | obj-$(CONFIG_SCHEDSTATS) += stats.o |
| 32 | obj-$(CONFIG_SCHED_DEBUG) += debug.o |
Li Zefan | 2e76c24 | 2013-03-29 14:36:31 +0800 | [diff] [blame] | 33 | obj-$(CONFIG_CGROUP_CPUACCT) += cpuacct.o |
Rafael J. Wysocki | adaf9fc | 2016-03-10 20:44:47 +0100 | [diff] [blame] | 34 | obj-$(CONFIG_CPU_FREQ) += cpufreq.o |
Rafael J. Wysocki | 9bdcb44 | 2016-04-02 01:09:12 +0200 | [diff] [blame] | 35 | obj-$(CONFIG_CPU_FREQ_GOV_SCHEDUTIL) += cpufreq_schedutil.o |
Mathieu Desnoyers | 22e4ebb | 2017-07-28 16:40:40 -0400 | [diff] [blame] | 36 | obj-$(CONFIG_MEMBARRIER) += membarrier.o |
Frederic Weisbecker | 5c4991e | 2017-10-27 04:42:34 +0200 | [diff] [blame] | 37 | obj-$(CONFIG_CPU_ISOLATION) += isolation.o |
Johannes Weiner | eb41468 | 2018-10-26 15:06:27 -0700 | [diff] [blame] | 38 | obj-$(CONFIG_PSI) += psi.o |