mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
ACPI: Disable ARB_DISABLE on platforms where it is not needed
ARB_DISABLE is a NOP on all of the recent Intel platforms. For such platforms, reduce contention on c3_lock by skipping the fake ARB_DISABLE. Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
cd86a536c8
commit
ee1ca48fae
2 changed files with 18 additions and 5 deletions
|
@ -512,7 +512,8 @@ static void acpi_processor_power_verify_c2(struct acpi_processor_cx *cx)
|
|||
static void acpi_processor_power_verify_c3(struct acpi_processor *pr,
|
||||
struct acpi_processor_cx *cx)
|
||||
{
|
||||
static int bm_check_flag;
|
||||
static int bm_check_flag = -1;
|
||||
static int bm_control_flag = -1;
|
||||
|
||||
|
||||
if (!cx->address)
|
||||
|
@ -542,12 +543,14 @@ static void acpi_processor_power_verify_c3(struct acpi_processor *pr,
|
|||
}
|
||||
|
||||
/* All the logic here assumes flags.bm_check is same across all CPUs */
|
||||
if (!bm_check_flag) {
|
||||
if (bm_check_flag == -1) {
|
||||
/* Determine whether bm_check is needed based on CPU */
|
||||
acpi_processor_power_init_bm_check(&(pr->flags), pr->id);
|
||||
bm_check_flag = pr->flags.bm_check;
|
||||
bm_control_flag = pr->flags.bm_control;
|
||||
} else {
|
||||
pr->flags.bm_check = bm_check_flag;
|
||||
pr->flags.bm_control = bm_control_flag;
|
||||
}
|
||||
|
||||
if (pr->flags.bm_check) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue