Re: [PATCH v2 2/3] x86/cpu/intel: Simplify F00F bug notice using pr_notice_once()

From: Dave Hansen

Date: Fri May 15 2026 - 19:24:05 EST


On 5/15/26 12:14, Ahmed S. Darwish wrote:
>> if (c->x86_vfm >= INTEL_FAM5_START && c->x86_vfm < INTEL_QUARK_X1000) {
>> - static int f00f_workaround_enabled;
>> -
>> set_cpu_bug(c, X86_BUG_F00F);
>> - if (!f00f_workaround_enabled) {
>> - pr_notice("Intel Pentium with F0 0F bug - workaround enabled.\n");
>> - f00f_workaround_enabled = 1;
>> - }
>> + pr_notice_once("Intel Pentium with F0 0F bug - workaround enabled.\n");
>> }
>>
> I think you can go further and just remove the whole dmesg line.
>
> All other set_cpu_bug() call sites in the kernel do not print anything [*],
> and /proc/cpuinfo already has a dedicated CPU bugs line.

Ahmed, this is a good point. I can almost guarantee that this message
predates all the bug gunk in /proc/cpuinfo.

I think this pr_notice() is fine to remove.