]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - arch/x86/kernel/cpu/Makefile
x86: use common aperfmperf_khz_on_cpu() to calculate KHz using APERF/MPERF
[mirror_ubuntu-bionic-kernel.git] / arch / x86 / kernel / cpu / Makefile
1 #
2 # Makefile for x86-compatible CPU details, features and quirks
3 #
4
5 # Don't trace early stages of a secondary CPU boot
6 ifdef CONFIG_FUNCTION_TRACER
7 CFLAGS_REMOVE_common.o = -pg
8 CFLAGS_REMOVE_perf_event.o = -pg
9 endif
10
11 # If these files are instrumented, boot hangs during the first second.
12 KCOV_INSTRUMENT_common.o := n
13 KCOV_INSTRUMENT_perf_event.o := n
14
15 # Make sure load_percpu_segment has no stackprotector
16 nostackp := $(call cc-option, -fno-stack-protector)
17 CFLAGS_common.o := $(nostackp)
18
19 obj-y := intel_cacheinfo.o scattered.o topology.o
20 obj-y += common.o
21 obj-y += rdrand.o
22 obj-y += match.o
23 obj-y += bugs.o
24 obj-$(CONFIG_CPU_FREQ) += aperfmperf.o
25
26 obj-$(CONFIG_PROC_FS) += proc.o
27 obj-$(CONFIG_X86_FEATURE_NAMES) += capflags.o powerflags.o
28
29 obj-$(CONFIG_CPU_SUP_INTEL) += intel.o
30 obj-$(CONFIG_CPU_SUP_AMD) += amd.o
31 obj-$(CONFIG_CPU_SUP_CYRIX_32) += cyrix.o
32 obj-$(CONFIG_CPU_SUP_CENTAUR) += centaur.o
33 obj-$(CONFIG_CPU_SUP_TRANSMETA_32) += transmeta.o
34 obj-$(CONFIG_CPU_SUP_UMC_32) += umc.o
35
36 obj-$(CONFIG_INTEL_RDT_A) += intel_rdt.o intel_rdt_rdtgroup.o intel_rdt_schemata.o
37
38 obj-$(CONFIG_X86_MCE) += mcheck/
39 obj-$(CONFIG_MTRR) += mtrr/
40 obj-$(CONFIG_MICROCODE) += microcode/
41
42 obj-$(CONFIG_X86_LOCAL_APIC) += perfctr-watchdog.o
43
44 obj-$(CONFIG_HYPERVISOR_GUEST) += vmware.o hypervisor.o mshyperv.o
45
46 ifdef CONFIG_X86_FEATURE_NAMES
47 quiet_cmd_mkcapflags = MKCAP $@
48 cmd_mkcapflags = $(CONFIG_SHELL) $(srctree)/$(src)/mkcapflags.sh $< $@
49
50 cpufeature = $(src)/../../include/asm/cpufeatures.h
51
52 targets += capflags.c
53 $(obj)/capflags.c: $(cpufeature) $(src)/mkcapflags.sh FORCE
54 $(call if_changed,mkcapflags)
55 endif
56 clean-files += capflags.c