[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YgpJHNfS6cs1aEjE@zn.tnic>
Date: Mon, 14 Feb 2022 13:20:44 +0100
From: Borislav Petkov <bp@...en8.de>
To: Yazen Ghannam <yazen.ghannam@....com>
Cc: linux-edac@...r.kernel.org, linux-kernel@...r.kernel.org,
mchehab@...nel.org, tony.luck@...el.com, james.morse@....com,
rric@...nel.org, Smita.KoralahalliChannabasappa@....com
Subject: Re: [PATCH v4 12/24] EDAC/amd64: Define function to get number of
interleaved channels
On Thu, Jan 27, 2022 at 08:41:03PM +0000, Yazen Ghannam wrote:
> Move number of interleaved channel calculation to a separate helper
> function. Drop unused cases.
... or by looking at that change, I think you want to have each separate
step in the address massaging be a separate function. Which, if so,
makes sense but you have to say it...
...
> +static void get_intlv_num_chan(struct addr_ctx *ctx)
> +{
> + /* Save the log2(# of channels). */
> + switch (ctx->intlv_mode) {
> + case NONE:
> + ctx->intlv_num_chan = 0;
> + break;
> + case NOHASH_2CH:
> + case DF2_HASH_2CH:
> + ctx->intlv_num_chan = 1;
> + break;
> + default:
> + /* Valid interleaving modes where checked earlier. */
"were"
> + break;
> + }
> +}
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
Powered by blists - more mailing lists