Message ID | d04b6fac0c94bc460cd070bea0e999a24a52b583.1495603536.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp115635qge; Tue, 23 May 2017 22:31:42 -0700 (PDT) X-Received: by 10.84.253.23 with SMTP id z23mr41516518pll.11.1495603902064; Tue, 23 May 2017 22:31:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495603902; cv=none; d=google.com; s=arc-20160816; b=fjc8cy1zSEYDFTdyX2yTrw72JSmcnMh9SffOAMkiLGt7dBJ66HWT+9VkT5HSOwaAPm svsvFjY/ca4CN1sWNbz4l+Xa5pjrPVWAHCcROymXB0KJrLd4aEIzlnLkjTB/9gRqsnLI fnsQGw4hlTRCxH8AqdfKYcZIRE4vSr7LLQBObMtj30UKLfZs2CNu7i2+36NQBo1VghZ/ d0tLopg28y0Dlq6mwXnDQ2SWKQXbF7NLMBtXFcVRf5kGpFprnforj6pHLvAPu+83AfTD 7ADlho/2b4byEgguqb+J4GHAyLsu19AreCYp7Ld3WCG1cOPXxxx0dDXczEYN5thEgWdi nkOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=35bb7eAf/rdwfVjY20K2jI2v2/ihJTvaU01n6l626tM=; b=gzCsKHPoEG9R0ItxMYd2ltNobT0KmgAXKHnmR3U6Kv9AJMOv+v27SvOPVFeOotqEmP 7OoaFjVdv2R2HsC1TXonmorNYSMsx1tGZjbfXEiUzIHhGt8nzXO7c0d9dKAz4dH8oYuq D0LIPOGLaN4a7scg0a7/Hn5fmOYmJKXF6vozgcZmA9FTjFzxU0stjtbsxnO1K6asSpJx p4Ww7owJpp9uXlNL48qc6sl5fw3+BIHoh9KeGpvKFxYhIqW79L3U54gnYi927HZnyNKb cD3g2vz2iRwSxO+Kdb6wPUlLOM4d9FShVeFoPRQtgcnFhXN0PJJbPeCIs4jVbRc83TG7 Enmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h82si23535430pfa.305.2017.05.23.22.31.41; Tue, 23 May 2017 22:31:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S969239AbdEXFb2 (ORCPT <rfc822;georgi.djakov@linaro.org> + 25 others); Wed, 24 May 2017 01:31:28 -0400 Received: from mail-pg0-f41.google.com ([74.125.83.41]:32998 "EHLO mail-pg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S969156AbdEXFao (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 24 May 2017 01:30:44 -0400 Received: by mail-pg0-f41.google.com with SMTP id u187so60157604pgb.0 for <linux-kernel@vger.kernel.org>; Tue, 23 May 2017 22:30:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=35bb7eAf/rdwfVjY20K2jI2v2/ihJTvaU01n6l626tM=; b=UE9gsy/YpWFxAEOhf9QpRoyfTaacXBt7mgIsrmm0V69MNAOcu0qmdFrjMExRqnS8kK 39jqqKTagqZXUiEC1AeGyVdikVMAf8LzxT3bC3RQ4cFnickmSCgROkXZxA928bwj7x/Z RZVljQ84xITKP/35hMI11D+vq3nBeL93EpC5o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=35bb7eAf/rdwfVjY20K2jI2v2/ihJTvaU01n6l626tM=; b=HJktD8ZlWzAwERFYGhMqL3ZKK59CL5XhQ3xxOYyaxu1xMbvqaQcTAMwidJAW9ExOfm xHEYhsDAlUqh2wQyD+2/8jK041kWM0NDD6GvlWiUHU7bU6io3GiaBvS3/pRGIdpklZ+C YvPcrN+kimADzWQVNvjTEDM0AVeoMF6SPt4VWDo/UmSOC37dmFGjaTuti59arWs5nZvS I52WD8ihvZmbtMsgYC5BWZmsbH4A7u8CHgwgs2ohWVtkEJ90dY/TVnPapJY1UGRn1Nwk UVN3of2NpFAHUeDQA1halyIm2ijG6EvAapWLnlXBKXi17sxq7dvdrcv3F31PMIhoAIRK 3KwA== X-Gm-Message-State: AODbwcDHymDXWAVyjnX9Dg4u5PfWEzvBEx7cudDHrDSIhj3U5LMBE7xP MwfRGnUTuDe1Hs58 X-Received: by 10.98.211.87 with SMTP id q84mr36513811pfg.126.1495603838963; Tue, 23 May 2017 22:30:38 -0700 (PDT) Received: from localhost ([122.167.143.58]) by smtp.gmail.com with ESMTPSA id l7sm5267490pgn.10.2017.05.23.22.30.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 May 2017 22:30:38 -0700 (PDT) From: Viresh Kumar <viresh.kumar@linaro.org> To: Ingo Molnar <mingo@redhat.com>, Peter Zijlstra <peterz@infradead.org> Cc: Viresh Kumar <viresh.kumar@linaro.org>, linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, Vincent Guittot <vincent.guittot@linaro.org> Subject: [PATCH 6/6] sched: cpufreq: Optimize cpufreq_update_this_cpu() a bit Date: Wed, 24 May 2017 10:59:57 +0530 Message-Id: <d04b6fac0c94bc460cd070bea0e999a24a52b583.1495603536.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.13.0.70.g6367777092d9 In-Reply-To: <cover.1495603536.git.viresh.kumar@linaro.org> References: <cover.1495603536.git.viresh.kumar@linaro.org> In-Reply-To: <cover.1495603536.git.viresh.kumar@linaro.org> References: <cover.1495603536.git.viresh.kumar@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
sched: Minor fixes and cleanups
|
expand
|
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index bcdf6a136c59..4220ec76d643 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -1995,7 +1995,7 @@ static inline void cpufreq_update_util(struct rq *rq, unsigned int flags) static inline void cpufreq_update_this_cpu(struct rq *rq, unsigned int flags) { - if (cpu_of(rq) == smp_processor_id()) + if (rq == this_rq()) cpufreq_update_util(rq, flags); } #else
smp_processor_id() can result in a function call if CONFIG_DEBUG_PREEMPT is enabled. It would be much straight forward to use this_rq() macro instead. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- kernel/sched/sched.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.13.0.70.g6367777092d9