Re: [PATCH 11/11] x86: perf_event_intel_pt.c: use arch_initcall to hook in enabling

Paul Gortmaker
2015-06-01T14:15:05Z

On 15-06-01 03:05 AM, Peter Zijlstra wrote:
> On Sun, May 31, 2015 at 08:54:12PM -0400, Paul Gortmaker wrote:
>> This was using module_init, but there is no way this code can
>> be modular.
>
> Same thing; you could actually make this modular if you wanted to.
>

..and this file is even in the same Makefile line of the prev. one:

arch/x86/kernel/cpu/Makefile:

obj-$(CONFIG_CPU_SUP_INTEL) += perf_event_intel_pt.o perf_event_intel_bts.o

and in arch/x86/Kconfig.cpu:

config CPU_SUP_INTEL
default y
bool "Support Intel processors" if PROCESSOR_SELECT

...so again, unless I'm missing something obvious (entirely possible
for a Monday) this too seems always built in to me.

Paul.