[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240203094014.GCZb4J_loB5DEohHxT@fat_crate.local>
Date: Sat, 3 Feb 2024 10:40:14 +0100
From: Borislav Petkov <bp@...en8.de>
To: Ricardo Neri <ricardo.neri-calderon@...ux.intel.com>
Cc: "Rafael J. Wysocki" <rafael.j.wysocki@...el.com>,
Len Brown <len.brown@...el.com>,
Srinivas Pandruvada <srinivas.pandruvada@...ux.intel.com>,
Stanislaw Gruszka <stanislaw.gruszka@...ux.intel.com>,
Zhao Liu <zhao1.liu@...el.com>,
Zhuocheng Ding <zhuocheng.ding@...el.com>, x86@...nel.org,
linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org,
Zhao Liu <zhao1.liu@...ux.intel.com>
Subject: Re: [PATCH 9/9] x86/cpu: Introduce interface to reset hardware
history
On Fri, Feb 02, 2024 at 08:05:15PM -0800, Ricardo Neri wrote:
> +void reset_hardware_history(void)
> +{
> + asm_inline volatile (ALTERNATIVE("", __ASM_HRESET, X86_FEATURE_HRESET)
> + : : "a" (hardware_history_features) : "memory");
> +}
This thing belongs in the header too, and it should be __always_inline.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
Powered by blists - more mailing lists