Commit 3b9c2e9e authored by Deepak Sharma's avatar Deepak Sharma Committed by sanglipeng
Browse files

x86: ACPI: cstate: Optimize C3 entry on AMD CPUs

stable inclusion
from stable-v5.10.166
commit 1f6768143bf76cdad9ec83b25929bab061df48ec
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I87FRA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=1f6768143bf76cdad9ec83b25929bab061df48ec



--------------------------------

commit a8fb4096 upstream.

All Zen or newer CPU which support C3 shares cache. Its not necessary to
flush the caches in software before entering C3. This will cause drop in
performance for the cores which share some caches. ARB_DIS is not used
with current AMD C state implementation. So set related flags correctly.

Signed-off-by: default avatarDeepak Sharma <deepak.sharma@amd.com>
Acked-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: default avatarGuilherme G. Piccoli <gpiccoli@igalia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent c2bd3988
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment