Re: [PATCH v6 10/12] x86/msr: Remove rdmsr()

From: Ingo Molnar

Date: Sun Nov 22 2026 - 06:35:00 EST



* Juergen Gross <jgross@xxxxxxxx> wrote:

> rdmsr() has no users left. Delete it.

Here too we have a few uses left in comments:

# rdmsr:
arch/x86/events/intel/lbr.c: * value from rdmsr() must be converted to have a 61 bits sign extension,
arch/x86/include/asm/shared/msr.h: * The kernel proper already defines rdmsr()/wrmsr(), but they are not for the
arch/x86/kernel/cpu/feat_ctl.c: * Use raw rdmsr() for primary processor controls and pin controls MSRs

Which can be addressed in a followup patch.

Thanks,

Ingo