Received: by 10.192.165.148 with SMTP id m20csp5164817imm; Tue, 8 May 2018 23:56:06 -0700 (PDT) X-Google-Smtp-Source: AB8JxZply26TdZf4TTxn4YwlE4NxYoujHqksVsERZfMBfq1GUnDzEbB7B+qsiB4hlX89KYvUj2pV X-Received: by 2002:a63:7b10:: with SMTP id w16-v6mr3284921pgc.355.1525848966564; Tue, 08 May 2018 23:56:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525848966; cv=none; d=google.com; s=arc-20160816; b=PIHC1kPmFyMmSOuNFIIyN5r1D2Rz1wDFcBWHDvXRdHnz94VdlD2FlgDhGREEjIaOHG /lZIzAN/yiBJb2rW925VPXScs042NuaUlHIIR3ABkNwxn9peRHwasiHPFPaWbsrDkFQG 4xxM2UUkK9qDaL0mmtkNl8Dr28tXECoX9cPdGz0PbwgXtLrX8k8/L2z4kO+gy7cHBImp jNRVwRrLCUfagjsCsogC4KhqNDZhUuX24E5wLpWt2RzbS8O/2ZthATjl/Okof535VBs1 wSnvKoOoEpyf/rEX/rl4efGpQb9RqkEi/EmF/1kRudRaRRJHdpsieS+2Hsf7ARV6qkSP vbkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=bYMfx5duujhmqZOp2fsd7oYzpMM+NOkOj6gJpL3ccXI=; b=tU56s39fGoNXhVKx6m47MC/CxT3Ez3DuPlt1vrKpvFC4zcEmlCDrUimO3vok/+z1QP 3vmrpFWVD+NxUcP5NE3XXC3M2dScb9eB2MZZbLaY7lfo9r1xY4BnBLGgQv3mrwXFx3mB VbQF+V69wj3yd0a6A+PL0aY5cppXtiE2dUbcuGUZqIAFDIJsWr/XomKOZa7QVNFviuaM CTwK5XXXf+wUGyBpoplk25zFbYCJHp/spsebNqR2y/bQtcPPJLCjzFZ8Eh6EU/GSsV5b BcdJfbsGK3SX9KJBqJLXKUOt51XPs1Nf/enXfwboGDG1NZi1/EWAy5eclnvCThcMOkqU W1ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T7XnSaMl; 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: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x1si25002695pfm.32.2018.05.08.23.55.51; Tue, 08 May 2018 23:56:06 -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 header.s=google header.b=T7XnSaMl; 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 S1756165AbeEIGyy (ORCPT + 99 others); Wed, 9 May 2018 02:54:54 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:43131 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755704AbeEIGyw (ORCPT ); Wed, 9 May 2018 02:54:52 -0400 Received: by mail-pl0-f65.google.com with SMTP id a39-v6so3734481pla.10 for ; Tue, 08 May 2018 23:54:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=bYMfx5duujhmqZOp2fsd7oYzpMM+NOkOj6gJpL3ccXI=; b=T7XnSaMl7bH9dlC+KMR5Y6XBYMyH0U/8oaNpDglEHMybZadcX0rZMylWS8cF/vsCho FIXhe0EMk4S/PA1l/B562+SYM5AEciuNg4McFdB9u/+XIImJdv858a00lD6ykT86PkgT e0E+JkOmisnRpIZOhnraCQWDkF+O3k/HrAs70= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=bYMfx5duujhmqZOp2fsd7oYzpMM+NOkOj6gJpL3ccXI=; b=NH+FhdAMiMYpekyB95oGf7py6ZCYAUCglcg/sLnVgLUgEWufqln7up0c1+uKrbwiYf vLRfrYoAmVU6dQRoxT1Ny7BXfX4/LTtinHSslBcVqhC3s8a2zxuoKtfEffTfclSOX3oa 31DJ8pEgda+5V2AYfwvsySQeIr9sKmGqJCxLLZyZq2WDYvKbaxIDKFU1aj6UVE1dNTs3 boOjSgxfBlandHI7UR179A8IRY9yEwSPeTL9SaOXw+NjzNLkVopUY/CPWsD9BxLgvkGG QFn1uJCmy+6ZZxJSXpW/aIT0QhkTs8vfZAlBrF15y4QBIz3+awuSXGMtD6aYhxLAWUJo TSTQ== X-Gm-Message-State: ALQs6tDihD03es5iuDbR7Q5YvnZXmxYgYR13H3UiLF9yp54+s72+ealF Oh7DY0fUzosnsKHMG/MxG35eTA== X-Received: by 2002:a17:902:4464:: with SMTP id k91-v6mr43771429pld.219.1525848892370; Tue, 08 May 2018 23:54:52 -0700 (PDT) Received: from localhost ([122.167.163.112]) by smtp.gmail.com with ESMTPSA id u68sm13847362pfu.32.2018.05.08.23.54.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 May 2018 23:54:51 -0700 (PDT) Date: Wed, 9 May 2018 12:24:49 +0530 From: Viresh Kumar To: Juri Lelli Cc: Joel Fernandes , Claudio Scordino , linux-kernel@vger.kernel.org, "Rafael J . Wysocki" , Peter Zijlstra , Ingo Molnar , Patrick Bellasi , Luca Abeni , Joel Fernandes , linux-pm@vger.kernel.org Subject: Re: [RFC PATCH] sched/cpufreq/schedutil: handling urgent frequency requests Message-ID: <20180509065449.c5zotxqmuyatjgfd@vireshk-i7> References: <1525704215-8683-1-git-send-email-claudio@evidence.eu.com> <20180508065435.bcht6dyb3rpp6gk5@vireshk-i7> <20180509045425.GA158882@joelaf.mtv.corp.google.com> <20180509064530.GA1681@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180509064530.GA1681@localhost.localdomain> User-Agent: NeoMutt/20180323-120-3dd1ac Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09-05-18, 08:45, Juri Lelli wrote: > On 08/05/18 21:54, Joel Fernandes wrote: > Isn't this potentially introducing unneeded irq pressure (and doing the > whole wakeup the kthread thing), while the already active kthread could > simply handle multiple back-to-back requests before going to sleep? And then we may need more instances of the work item and need to store a different value of next_freq with each work item, as we can't use the common one anymore as there would be races around accessing it ? -- viresh