lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1467014163-1517-1-git-send-email-jszhang@marvell.com>
Date:	Mon, 27 Jun 2016 15:56:03 +0800
From:	Jisheng Zhang <jszhang@...vell.com>
To:	<mingo@...hat.com>, <peterz@...radead.org>,
	<rafael.j.wysocki@...el.com>
CC:	<linux-kernel@...r.kernel.org>, Jisheng Zhang <jszhang@...vell.com>
Subject: [PATCH] sched/fair: avoid !CONFIG_SMP cpufreq update callbacks when go idle

This is to avoid cpufreq update callbacks when we go idle on UP
platforms.

Signed-off-by: Jisheng Zhang <jszhang@...vell.com>
---
 kernel/sched/fair.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index bdcbeea..236ec5b 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -3121,7 +3121,8 @@ static inline void update_load_avg(struct sched_entity *se, int not_used)
 	struct cfs_rq *cfs_rq = cfs_rq_of(se);
 	struct rq *rq = rq_of(cfs_rq);
 
-	cpufreq_trigger_update(rq_clock(rq));
+	if (&rq->cfs == cfs_rq)
+		cpufreq_trigger_update(rq_clock(rq));
 }
 
 static inline void
-- 
2.8.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ