Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1420022imm; Tue, 22 May 2018 03:56:12 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrM7VCgbwDUybBiLU4isurFkmvYrb5wTNyx2ITibYoWroSBOE/6b2xXG7/fDkuAV/U28lqa X-Received: by 2002:a62:c898:: with SMTP id i24-v6mr23907625pfk.35.1526986571943; Tue, 22 May 2018 03:56:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526986571; cv=none; d=google.com; s=arc-20160816; b=dtEJAIx2UbvMTxdwXhQ8ShHNZmw0JE+wudKZ4zuh+pCku5J35mevLBCyCPut4s6Esc j5r+qKKpMYszJYW/HjD3FvvxNUDZLgZp4DveFluE/5TFlKr1F3tFi/6Lbo0m9NTWZFvr 9a9RDZdpt9BPB54Eh+atOABLfvxcmwy/9xan8Kz2ANU8oYzU0IupFzdaYv74zxLMgKjq wa9W7aaarODi7wXSFLGbZtOMSOEwK26rNHM6ecqEQfZSZMAJ36rNaKJSeulFDaVW+hN8 82nOJyB3VrEZDjxvkYeV6fdbPoTVWfBMRqSFZX9ZCe3Ab+ftvCl6lxK91qIO+4MLRdIg qH2Q== 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=ZWdsg8c+fxh2LGoJxtE5D6Qxhh2e4V/Hfxe4OybeLPs=; b=GVyZic+1srznm22hF6cNGYUaJopgOhyooyxSsYYnoo2LPXzOkiNwke9iFYxd8YolVw BdEVFCEEw49ixRt1txXhTQTBYgXPKFgt9V+b759lioMXegeRzeRhSAnOMS+qDNylP4oU jcby8a/hHPt0zMs02hi8bSQndx41qL03lIYvpO4UukuI1P8KBj04Q8E31ghrn20I9RO4 Flbic8kiJIqalzfgHX7dzO4ZBFs2MR33P0vYQOs00NBkJGmlGFyvxjKX5sfg80abX5D1 99jZO4quyhPMOdtKKBtn4zvBDRMPDjUqwX617T1jOsQibLUkusAl6XKh+kf3+EzUynLr sCWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KX9e7tom; 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 t22-v6si17117904plj.595.2018.05.22.03.55.56; Tue, 22 May 2018 03:56:11 -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=KX9e7tom; 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 S1751354AbeEVKyf (ORCPT + 99 others); Tue, 22 May 2018 06:54:35 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:43864 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751239AbeEVKyc (ORCPT ); Tue, 22 May 2018 06:54:32 -0400 Received: by mail-pf0-f194.google.com with SMTP id j20-v6so8588937pff.10 for ; Tue, 22 May 2018 03:54:32 -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=ZWdsg8c+fxh2LGoJxtE5D6Qxhh2e4V/Hfxe4OybeLPs=; b=KX9e7tomdNUGAFY2DlKjNpRrfcO4K2VjrCAkD9qNc8JuqI22bR3QNPRwHzvzMMHJCy ZYkuzztSj0B7bFwD04SfntgwKMw9rlKizOotJGmcEdq7pOKQwE/uLBSnl1pZDxioW1ux tUc7AhjYUL2k6+oHw3HSAsqU6ahxFrltmhacs= 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=ZWdsg8c+fxh2LGoJxtE5D6Qxhh2e4V/Hfxe4OybeLPs=; b=Dm2m3Vo58y2m+zAaiXv6dAOk/XK0BER1wR1+gRlhb2Cb0RL672rlnsn/SGrUqHHP0p SHVy0RsBwRryZN2Yg2YgzhpEejauFbLkJJ9BM0Yn1/QGt89a2/j7Zred7LsV+rOm2C4p ng/o5v1N4ZzGBmPoFMgXkgUryyqQv2V02dycOtyc8JnIp3pAcyyU+8+saXVwYoZvaXhl cCBs5DayQuQP+hgXGCrGrpez2Q7pXDEDmWguKFHWxDws/LIjNULex1jJm+V7Tcr4r5MT I0tjWzIpbhmTsq7ljvQ7q61D0mRuOCK5Jr2b649o/8ZUI49emU4T6IhQ95aWrBXsARC3 LiIg== X-Gm-Message-State: ALKqPwceigq4vGHJ6W0ltNdrEsj3yAzoNpl1yKpHbEYN/pHwGBmfs0ot KIQIw6BjOLEeC1sxjmiJ2Lv6eA== X-Received: by 2002:a63:af0e:: with SMTP id w14-v6mr8907199pge.221.1526986471925; Tue, 22 May 2018 03:54:31 -0700 (PDT) Received: from localhost ([122.167.163.112]) by smtp.gmail.com with ESMTPSA id i10-v6sm21970097pgv.6.2018.05.22.03.54.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 May 2018 03:54:31 -0700 (PDT) Date: Tue, 22 May 2018 16:24:29 +0530 From: Viresh Kumar To: "Rafael J. Wysocki" Cc: "Joel Fernandes (Google.)" , linux-kernel@vger.kernel.org, "Joel Fernandes (Google)" , "Rafael J . Wysocki" , Peter Zijlstra , Ingo Molnar , Patrick Bellasi , Juri Lelli , Luca Abeni , Todd Kjos , claudio@evidence.eu.com, kernel-team@android.com, linux-pm@vger.kernel.org Subject: Re: [PATCH v2] schedutil: Allow cpufreq requests to be made even when kthread kicked Message-ID: <20180522105429.yn2omuz63oa2w3ez@vireshk-i7> References: <20180518185501.173552-1-joel@joelfernandes.org> <20180522103415.cuutobi5kbhj4gcw@vireshk-i7> <20180522105006.hvntwnhzzvhznij2@vireshk-i7> <4393838.cQWhzXzUcj@aspire.rjw.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4393838.cQWhzXzUcj@aspire.rjw.lan> 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 22-05-18, 12:50, Rafael J. Wysocki wrote: > Ugly indeed. Hehe. I was thinking, maybe we can write wrapper helpers around lock/unlock which are stored as pointers in sg_policy. So that those are only set to non-NULL values (or non-Noop routines) for slow-switching single policy or any-switching shared policy systems. Then we can get rid of such conditional locking attempts :) -- viresh