|
@@ -872,7 +872,7 @@ static void update_rq_clock_task(struct rq *rq, s64 delta)
|
|
rq->clock_task += delta;
|
|
rq->clock_task += delta;
|
|
|
|
|
|
#if defined(CONFIG_IRQ_TIME_ACCOUNTING) || defined(CONFIG_PARAVIRT_TIME_ACCOUNTING)
|
|
#if defined(CONFIG_IRQ_TIME_ACCOUNTING) || defined(CONFIG_PARAVIRT_TIME_ACCOUNTING)
|
|
- if ((irq_delta + steal) && sched_feat(NONTASK_POWER))
|
|
|
|
|
|
+ if ((irq_delta + steal) && sched_feat(NONTASK_CAPACITY))
|
|
sched_rt_avg_update(rq, irq_delta + steal);
|
|
sched_rt_avg_update(rq, irq_delta + steal);
|
|
#endif
|
|
#endif
|
|
}
|
|
}
|
|
@@ -5309,7 +5309,7 @@ static int sd_degenerate(struct sched_domain *sd)
|
|
SD_BALANCE_NEWIDLE |
|
|
SD_BALANCE_NEWIDLE |
|
|
SD_BALANCE_FORK |
|
|
SD_BALANCE_FORK |
|
|
SD_BALANCE_EXEC |
|
|
SD_BALANCE_EXEC |
|
|
- SD_SHARE_CPUPOWER |
|
|
|
|
|
|
+ SD_SHARE_CPUCAPACITY |
|
|
SD_SHARE_PKG_RESOURCES |
|
|
SD_SHARE_PKG_RESOURCES |
|
|
SD_SHARE_POWERDOMAIN)) {
|
|
SD_SHARE_POWERDOMAIN)) {
|
|
if (sd->groups != sd->groups->next)
|
|
if (sd->groups != sd->groups->next)
|
|
@@ -5340,7 +5340,7 @@ sd_parent_degenerate(struct sched_domain *sd, struct sched_domain *parent)
|
|
SD_BALANCE_NEWIDLE |
|
|
SD_BALANCE_NEWIDLE |
|
|
SD_BALANCE_FORK |
|
|
SD_BALANCE_FORK |
|
|
SD_BALANCE_EXEC |
|
|
SD_BALANCE_EXEC |
|
|
- SD_SHARE_CPUPOWER |
|
|
|
|
|
|
+ SD_SHARE_CPUCAPACITY |
|
|
SD_SHARE_PKG_RESOURCES |
|
|
SD_SHARE_PKG_RESOURCES |
|
|
SD_PREFER_SIBLING |
|
|
SD_PREFER_SIBLING |
|
|
SD_SHARE_POWERDOMAIN);
|
|
SD_SHARE_POWERDOMAIN);
|
|
@@ -5947,7 +5947,7 @@ static int sched_domains_curr_level;
|
|
/*
|
|
/*
|
|
* SD_flags allowed in topology descriptions.
|
|
* SD_flags allowed in topology descriptions.
|
|
*
|
|
*
|
|
- * SD_SHARE_CPUPOWER - describes SMT topologies
|
|
|
|
|
|
+ * SD_SHARE_CPUCAPACITY - describes SMT topologies
|
|
* SD_SHARE_PKG_RESOURCES - describes shared caches
|
|
* SD_SHARE_PKG_RESOURCES - describes shared caches
|
|
* SD_NUMA - describes NUMA topologies
|
|
* SD_NUMA - describes NUMA topologies
|
|
* SD_SHARE_POWERDOMAIN - describes shared power domain
|
|
* SD_SHARE_POWERDOMAIN - describes shared power domain
|
|
@@ -5956,7 +5956,7 @@ static int sched_domains_curr_level;
|
|
* SD_ASYM_PACKING - describes SMT quirks
|
|
* SD_ASYM_PACKING - describes SMT quirks
|
|
*/
|
|
*/
|
|
#define TOPOLOGY_SD_FLAGS \
|
|
#define TOPOLOGY_SD_FLAGS \
|
|
- (SD_SHARE_CPUPOWER | \
|
|
|
|
|
|
+ (SD_SHARE_CPUCAPACITY | \
|
|
SD_SHARE_PKG_RESOURCES | \
|
|
SD_SHARE_PKG_RESOURCES | \
|
|
SD_NUMA | \
|
|
SD_NUMA | \
|
|
SD_ASYM_PACKING | \
|
|
SD_ASYM_PACKING | \
|
|
@@ -6002,7 +6002,7 @@ sd_init(struct sched_domain_topology_level *tl, int cpu)
|
|
| 1*SD_BALANCE_FORK
|
|
| 1*SD_BALANCE_FORK
|
|
| 0*SD_BALANCE_WAKE
|
|
| 0*SD_BALANCE_WAKE
|
|
| 1*SD_WAKE_AFFINE
|
|
| 1*SD_WAKE_AFFINE
|
|
- | 0*SD_SHARE_CPUPOWER
|
|
|
|
|
|
+ | 0*SD_SHARE_CPUCAPACITY
|
|
| 0*SD_SHARE_PKG_RESOURCES
|
|
| 0*SD_SHARE_PKG_RESOURCES
|
|
| 0*SD_SERIALIZE
|
|
| 0*SD_SERIALIZE
|
|
| 0*SD_PREFER_SIBLING
|
|
| 0*SD_PREFER_SIBLING
|
|
@@ -6024,7 +6024,7 @@ sd_init(struct sched_domain_topology_level *tl, int cpu)
|
|
* Convert topological properties into behaviour.
|
|
* Convert topological properties into behaviour.
|
|
*/
|
|
*/
|
|
|
|
|
|
- if (sd->flags & SD_SHARE_CPUPOWER) {
|
|
|
|
|
|
+ if (sd->flags & SD_SHARE_CPUCAPACITY) {
|
|
sd->imbalance_pct = 110;
|
|
sd->imbalance_pct = 110;
|
|
sd->smt_gain = 1178; /* ~15% */
|
|
sd->smt_gain = 1178; /* ~15% */
|
|
|
|
|