Re: [PATCH v5 4/4] x86/cacheinfo: Clean out init_cache_level()

From: Nikolay Borisov
Date: Wed Aug 28 2024 - 10:01:50 EST




On 27.08.24 г. 8:16 ч., Ricardo Neri wrote:
init_cache_level() no longer has a purpose on x86. It no longer needs to
set num_leaves, and it never had to set num_levels, which was unnecessary
on x86.

Replace it with "return 0" simply to override the weak function, which
would return an error.

Reviewed-by: Len Brown <len.brown@xxxxxxxxx>
Signed-off-by: Ricardo Neri <ricardo.neri-calderon@xxxxxxxxxxxxxxx>

Reviewed-by: Nikolay Borisov <nik.borisov@xxxxxxxx>

<snip>