[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6be685f7-e99d-42af-b26e-d5e542f597fd@intel.com>
Date: Tue, 16 Jul 2024 08:39:04 -0700
From: Reinette Chatre <reinette.chatre@...el.com>
To: Christophe JAILLET <christophe.jaillet@...adoo.fr>, Fenghua Yu
<fenghua.yu@...el.com>, Thomas Gleixner <tglx@...utronix.de>, Ingo Molnar
<mingo@...hat.com>, Borislav Petkov <bp@...en8.de>, Dave Hansen
<dave.hansen@...ux.intel.com>, <x86@...nel.org>, "H. Peter Anvin"
<hpa@...or.com>
CC: <linux-kernel@...r.kernel.org>, <kernel-janitors@...r.kernel.org>
Subject: Re: [PATCH] x86/resctrl: Slightly clean-up mbm_config_show()
Hi Christophe,
On 7/13/24 4:02 AM, Christophe JAILLET wrote:
> 'mon_info' is already zeroed in the list_for_each_entry() loop below.
> There is no need to explicitly initialize it here. It just wastes some
> space and cycles.
>
> Remove this un-needed code.
>
> On a x86_64, with allmodconfig:
> Before:
> ======
> text data bss dec hex filename
> 74967 5103 1880 81950 1401e arch/x86/kernel/cpu/resctrl/rdtgroup.o
>
> After:
> =====
> text data bss dec hex filename
> 74903 5103 1880 81886 13fde arch/x86/kernel/cpu/resctrl/rdtgroup.o
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@...adoo.fr>
> ---
Reviewed-by: Reinette Chatre <reinette.chatre@...el.com>
Thank you.
Reinette
Powered by blists - more mailing lists