Re: [PATCH 4/4] x86/mce: Get rid of the ->quirk_no_way_out() indirect call

From: Luck, Tony
Date: Mon Sep 20 2021 - 01:06:10 EST


On Fri, Sep 17, 2021 at 12:53:55PM +0200, Borislav Petkov wrote:
> @@ -1793,7 +1791,7 @@ static int __mcheck_cpu_apply_quirks(struct cpuinfo_x86 *c)
> cfg->bootlog = 0;
>
> if (c->x86 == 6 && c->x86_model == 45)
> - quirk_no_way_out = quirk_sandybridge_ifu;
> + mce_flags.snb_ifu_quirk = 1;
> }

Someday all these tests for random vendor/family/model/stepping could be
refactored into a x86_match_cpu() lookup table (now that x86_match_cpu
can handle steppings). But that's a topic for a different patch series.

-Tony