Skip to content

Commit

Permalink
[Intel][Gemini Lake] Removed MSR_TURBO_ACTIVATION_RATIO
Browse files Browse the repository at this point in the history
  • Loading branch information
cyring authored and CyrIng committed Dec 30, 2022
1 parent 5a84d5f commit 9e80cbf
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
17 changes: 14 additions & 3 deletions corefreqk.c
Original file line number Diff line number Diff line change
Expand Up @@ -11965,7 +11965,7 @@ static void PerCore_Airmont_Query(void *arg)
}
}

static void PerCore_Goldmont_Query(void *arg)
static void PerCore_Atom_Goldmont_Query(void *arg)
{
CORE_RO *Core = (CORE_RO *) arg;

Expand Down Expand Up @@ -12014,8 +12014,6 @@ static void PerCore_Goldmont_Query(void *arg)

ThermalMonitor_Set(Core);

Intel_Turbo_Activation_Ratio(Core);

if (Core->Bind == PUBLIC(RO(Proc))->Service.Core) {
Intel_DomainPowerLimit( MSR_PKG_POWER_LIMIT, /* Table 2-12 */
PKG_POWER_LIMIT_LOCK_MASK,
Expand All @@ -12039,6 +12037,19 @@ static void PerCore_Goldmont_Query(void *arg)
}
}

static void PerCore_Goldmont_Query(void *arg)
{
CORE_RO *Core = (CORE_RO *) arg;

PerCore_Atom_Goldmont_Query(arg);
Intel_Turbo_Activation_Ratio(Core);
}

static void PerCore_Geminilake_Query(void *arg)
{
PerCore_Atom_Goldmont_Query(arg);
}

static void PerCore_Nehalem_Same_Query(void *arg)
{
CORE_RO *Core = (CORE_RO *) arg;
Expand Down
4 changes: 3 additions & 1 deletion corefreqk.h
Original file line number Diff line number Diff line change
Expand Up @@ -1514,6 +1514,8 @@ static void InitTimer_Goldmont(unsigned int cpu) ;
static void Query_Airmont(unsigned int cpu) ;
static void PerCore_Airmont_Query(void *arg) ;

static void PerCore_Geminilake_Query(void *arg) ;

static void Query_Nehalem(unsigned int cpu) ;
static void PerCore_Nehalem_Query(void *arg) ;
static void PerCore_Nehalem_EX_Query(void *arg) ;
Expand Down Expand Up @@ -8731,7 +8733,7 @@ static ARCH Arch[ARCHITECTURES] = {
[Geminilake] = { /* 56*/
.Signature = _Geminilake,
.Query = Query_Goldmont,
.Update = PerCore_Goldmont_Query,
.Update = PerCore_Geminilake_Query,
.Start = Start_Goldmont,
.Stop = Stop_Goldmont,
.Exit = NULL,
Expand Down

0 comments on commit 9e80cbf

Please sign in to comment.