Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1287807ybg; Fri, 18 Oct 2019 15:16:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJjRTmeUs9EM50Ac9uhbbXfibar26oXJdD8CYUYX75DAtF5lQjcoHmoiYuJQmwurT8Jdho X-Received: by 2002:a17:906:49d1:: with SMTP id w17mr11239398ejv.101.1571436964154; Fri, 18 Oct 2019 15:16:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571436964; cv=none; d=google.com; s=arc-20160816; b=n51zsaYRB6u+i+u0NU3zvDSA5BelZWftweY/0Hdg/cZ5nhkqtrhmqBoqPf8praTGhQ aXA/BtpBODFopfvs4a0n7Na1HLMSzZFvKjmPmJn2p5bcqxsU91mJbkUTP7ZQgAKZJssd /yPu+Yhv7PW8kkOItl3W4cSdxG+seOnMZFQfMCOuZUqFvFbs2FVacy0nts5jxTx4QpFw 1fPl5kpab1HI0WAKJMLf9VNUudYS8/yzU7Kc6xPTunOND7XzbhzmZ5KsVTMFV9xax31T 3VFFXY2U5qESIg4laqE0eZbEXk4yLPoTASafORdQL+HpBU0zE8KMbqW2f3Cqrc91FbVF zjYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=H/qoyoMQ9W4I1/TYe0ldoyjtavCj7X+7Ce3KSIjFEFU=; b=BvZWI+w5rWCyucE+IrJeIVIdV/HTU4cy0DvjEwmhF2nhMwXncZu0Y0gDVYfUtYFvWY ohG8fs9ld4/gjgueZLHyCOJHUdse9N3yqNKxotFun5FNmB372rpjq8xiJTPjAAJmFD8G yWV3reIxEV/fJvlMsHlwVsNU2AVdGjj3FwU1o/5XJdEHbt41KUJGJ/JI63GPVFTnnS8y TJWLeR05ed9fh4Z1uX5k1Rr/34NsbeUHYKVxR0Qils4a7Oa/bJXW8TasaIylBLXhD5tt 8qKHiSxDiw5QO0/J6mGBCGpD5K32kXdoFnbODCH+a1Z0R+gb5Zl86KJoxmkQJojCiLkW +KTQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g37si4968764edg.59.2019.10.18.15.15.41; Fri, 18 Oct 2019 15:16:04 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393337AbfJQTUN (ORCPT + 99 others); Thu, 17 Oct 2019 15:20:13 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:46097 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727397AbfJQTUN (ORCPT ); Thu, 17 Oct 2019 15:20:13 -0400 Received: by mail-ot1-f68.google.com with SMTP id 89so2853108oth.13; Thu, 17 Oct 2019 12:20:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=H/qoyoMQ9W4I1/TYe0ldoyjtavCj7X+7Ce3KSIjFEFU=; b=PelJKRk2DHJV3qBvE3sMdIIHJ6mZZq989mkneN8n3olSs4RWvIyYdpvEGJhy5RD1OI HuxDZhvSdXmgGjaOzhZBHHGNTg6jiAg6Xm7OWoXKGt8EcM+3pkA9uTXcUmpOMPMKkTCW aT4EVkcanTMTZ+O/0/JU65KmoDKH0H9Hdza1FLzoM2fkfCcxfYOZ1obL1+nCq+Jy57Ay aQRR2MHYExlZB8Nk+l5kHQbvHgaZLTvDv9/xWLTSojpbWdluSLZapmDCLfIdqHBp40Jd 5S6+Nk7xNRKczlUvJ3ckMxQcar7bx9OzFLb3zBDu2Sl+zhtbV3pula6fch6OofXhCMr6 fjCA== X-Gm-Message-State: APjAAAUTodRptpWb4AhJj9RMFeoI7q3W1xzyCGUA2X8m/7i0eahoxj/t b7x3FeJg1PWFV20NYiwF/RBsl6IKCPD1lXgmLLo= X-Received: by 2002:a9d:459b:: with SMTP id x27mr4188702ote.167.1571340012633; Thu, 17 Oct 2019 12:20:12 -0700 (PDT) MIME-Version: 1.0 References: <1571272750-29798-1-git-send-email-zhenzhong.duan@oracle.com> In-Reply-To: <1571272750-29798-1-git-send-email-zhenzhong.duan@oracle.com> From: "Rafael J. Wysocki" Date: Thu, 17 Oct 2019 21:20:01 +0200 Message-ID: Subject: Re: [PATCH] cpuidle-haltpoll: make haltpoll aware of 'idle=' override To: Zhenzhong Duan Cc: Linux Kernel Mailing List , "Rafael J. Wysocki" , Daniel Lezcano , Linux PM , Marcelo Tosatti , Joao Martins Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 17, 2019 at 2:41 AM Zhenzhong Duan wrote: > > Currenly haltpoll isn't aware of the 'idle=' override, the priority is > 'idle=poll' > haltpoll > 'idle=halt'. When 'idle=poll' is used, cpuidle > driver is bypassed but current_driver in sys still shows 'haltpoll'. > > When 'idle=halt' is used, haltpoll take precedence and make 'idle=halt' > no effect. > > Add a check to not load haltpoll driver if there is 'idle=' OK > and haltpoll > is built in. If haltpoll is built as a module, still give a chance for > admin to use it despite 'idle='. Why exactly? Do you have any particular use case in mind? Otherwise I'd prefer the behavior to be consistent regardless of whether or not it is a module..