From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752660AbcBLNdA (ORCPT ); Fri, 12 Feb 2016 08:33:00 -0500 Received: from v094114.home.net.pl ([79.96.170.134]:58455 "HELO v094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752567AbcBLNcN (ORCPT ); Fri, 12 Feb 2016 08:32:13 -0500 From: "Rafael J. Wysocki" To: Linux PM list Cc: Linux Kernel Mailing List , Viresh Kumar , Juri Lelli , Shilpasri G Bhat Subject: [PATCH 0/2] cpufreq: governor: Optimize work queuing in ondemand/conservative Date: Fri, 12 Feb 2016 14:26:59 +0100 Message-ID: <5225538.XnBMjjCp2q@vostro.rjw.lan> User-Agent: KMail/4.11.5 (Linux/4.5.0-rc1+; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This is rather extreme, but I think that we should make the scheduler paths as lightweight as reasonably possible. [1/2] removes the atomic work counter incrementation from gov_cancel_work() as it is not necessary any more. [2/2] changes the way work items are handled by dbs_update_util_handler() and dbs_work_handler() to avoid extra atomic operations in cases when they aren't really necessary (policy objects serving one CPU only). On top of the pm-cpufreq-test branch of linux-pm.git. Lightly tested, but I don't have systems where policy objects are shared. Thanks, Rafael