[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v3 01/14] x86/msr: Move rdtsc{,_ordered}() to <asm/tsc.h>
On Fri, 25 Apr 2025, Xin Li (Intel) wrote: > For some reason, there are some TSC-related functions in the MSR > header even though there is a tsc.h header. > > Relocate rdtsc{,_ordered}() from <asm/msr.h> to <asm/tsc.h>, and > subsequently remove the inclusion of <asm/msr.h> in <asm/tsc.h>. > Consequently, <asm/msr.h> must be included in several source files > that previously did not require it. > > Signed-off-by: Xin Li (Intel) <xin@xxxxxxxxx> > Acked-by: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx> > --- > > Change in v3: > * Add a problem statement to the changelog (Dave Hansen). > --- > drivers/platform/x86/intel/pmc/cnp.c | 1 + > .../intel/speed_select_if/isst_if_common.c | 1 + > drivers/platform/x86/intel/turbo_max_3.c | 1 + Hi, To me this looks really a random set of source files, maybe it helped some build success but it's hard for me to review this because there are still cases that depend on indirect include chains. Could you just look into solving all missing msr.h includes instead as clearly some are still missing after 3 pre-existing ones and you adding it into 3 files: $ git grep -e rdmsr -e wrmsr -l drivers/platform/x86/ drivers/platform/x86/intel/ifs/core.c drivers/platform/x86/intel/ifs/load.c drivers/platform/x86/intel/ifs/runtest.c drivers/platform/x86/intel/pmc/cnp.c drivers/platform/x86/intel/pmc/core.c drivers/platform/x86/intel/speed_select_if/isst_if_common.c drivers/platform/x86/intel/speed_select_if/isst_if_mbox_msr.c drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c drivers/platform/x86/intel/tpmi_power_domains.c drivers/platform/x86/intel/turbo_max_3.c drivers/platform/x86/intel/uncore-frequency/uncore-frequency.c drivers/platform/x86/intel_ips.c $ git grep -e 'msr.h' -l drivers/platform/x86/ drivers/platform/x86/intel/pmc/core.c drivers/platform/x86/intel/tpmi_power_domains.c drivers/platform/x86/intel_ips.c I'd also prefer the patch(es) adding missing includes be in a different patch. -- i.
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |