Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4625385rdb; Tue, 12 Dec 2023 05:10:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IE1cUz9gO0A+5P02zpMpvEQNZqdS88mTuUF6vsvLXON1hA47EJSs5q+p/xgxZoRkTsi9PVQ X-Received: by 2002:a17:902:e5c7:b0:1d0:c390:9d5f with SMTP id u7-20020a170902e5c700b001d0c3909d5fmr2877258plf.9.1702386606598; Tue, 12 Dec 2023 05:10:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702386606; cv=none; d=google.com; s=arc-20160816; b=R3aspKtZ63m+BTBNVuP7G10o6rNW8EvbzIJKIL68jqoOXL5QQrQQmNZ/cqrndm6XQk RpAx+GUQTOQ+2p+pigTmAUWHQFdfA7fRQZheHhC4p0gP5seiM/brHNfy0/qnS9zUJQBR hI/4z94luHv6TbtKLvXmTcenoornP/eFLGTooQtHRoRf8+1wGKYbwy0ZWZbYGeMkdFRF iHlgBYLe/y+mPGg70vE8gyCJy55xNS8zzE2PtGP66DR+RQFnQ92Wg+E9I0WdZolQnS9r i5EVJAped6MUC79wafLSB6qB8fZqNZQSRxJGT9GeOHrcGqL2Phm4so1rORWb+vAyZ4mi wrVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=OtFf694AQnWixyvKCxxcvMmkrKqTy/WIsfbHdrfqDUA=; fh=Ex/TP0FQL8Qmw7yMR9dWou3JcsYXvXXH7E8ivuoqhvc=; b=B8V26ZCG2LmWm5cfIxbVHpqcAjz/b3Upw66fOopIkqPcrV2s/jcm0Kys53SCtNdCNU AOP7w6KVsmLLqLx+nuDETqhRbfGTHcS4/cmLQpUY2M5KOrP322Ioca0GJRiipLy47f6O RHajBgwn5F//5x+BQrDHng91U1vA4BGtq4VTpwQ8CvYs03BKZ+15n2RnHO4/xj9UhpF8 EhX+N2Q2qRFb3Rq7LqN3VzR6HHGYv2eYSquShWrXAZ1qLpbMwZtJzw2TLpOULteiaBHX oLYMV3WdFegkOJ2JpKMkPwDj8ecG74gpF+gpZhIKsaHNwORteRfU7yBYbtwoEjFI+CaS d6aA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id w6-20020a170902a70600b001cfc4215864si7599403plq.588.2023.12.12.05.10.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 05:10:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 1294A802EF3F; Tue, 12 Dec 2023 05:10:04 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376533AbjLLNJp convert rfc822-to-8bit (ORCPT + 99 others); Tue, 12 Dec 2023 08:09:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376531AbjLLNJn (ORCPT ); Tue, 12 Dec 2023 08:09:43 -0500 Received: from mail-ot1-f41.google.com (mail-ot1-f41.google.com [209.85.210.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CF9FF4; Tue, 12 Dec 2023 05:09:50 -0800 (PST) Received: by mail-ot1-f41.google.com with SMTP id 46e09a7af769-6d9db92bd71so762850a34.1; Tue, 12 Dec 2023 05:09:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702386590; x=1702991390; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lAqdKm0EKgBcxE4mTrx8v0yfSJhP1XzxWLOd6J96gro=; b=PgCgL2mhf9YSWfl7kVX/RsNplqW8QzyWVZBqVK3BHUGlrc9Ch4QT1jhE1Rc8vFC7DW 2k6CWKR5mVaoy3dMx8TDoMVKkxpDqDpzi6IA6iREGOvi/DmDobGd7SKwxMpep5qvuEZ+ TaI1CJqCb4rnfIWaI36o5Lxn/40b5LYKPOwEWygw0+RCEUO2gCWl/Lb9v9tbOXWYvoOm k69XCs7lK2oqbq1pog0lZQgo238putL6c6DC0NMkMA8YhEKGeoiCpxMbH9LWaAb8qHAy /2y+q0QHVF+FVa4Ln6dmxV0ytis/ZBb8cqKYcNakihjpUj5jJcGjQQtSIc11SOvxrsnp mbGA== X-Gm-Message-State: AOJu0YzGirGriDseSU43hLkf34Q3iqn8xFvLPBF/jLDDs0+mGJ/7FZ1E 3cnB38uhGfv73y/JR7ePYLGGHl8gX8bjwy8FZC5CbqfJLL0= X-Received: by 2002:a05:6820:220d:b0:58d:5302:5b18 with SMTP id cj13-20020a056820220d00b0058d53025b18mr12505756oob.1.1702386589661; Tue, 12 Dec 2023 05:09:49 -0800 (PST) MIME-Version: 1.0 References: <20231124223226.24249-1-frederic@kernel.org> <20231124223226.24249-5-frederic@kernel.org> In-Reply-To: <20231124223226.24249-5-frederic@kernel.org> From: "Rafael J. Wysocki" Date: Tue, 12 Dec 2023 14:09:38 +0100 Message-ID: Subject: Re: [PATCH 4/7] cpuidle: s/CPUIDLE_FLAG_POLLING/CPUIDLE_FLAG_POLLING_SOFT To: Frederic Weisbecker Cc: LKML , "Rafael J . Wysocki" , Daniel Lezcano , linux-pm@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , Peter Zijlstra Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 12 Dec 2023 05:10:04 -0800 (PST) On Fri, Nov 24, 2023 at 11:32 PM Frederic Weisbecker wrote: > > In order to further distinguish software and hardware TIF_NEED_RESCHED > polling cpuidle states, rename CPUIDLE_FLAG_POLLING to > CPUIDLE_FLAG_POLLING_SOFT before introducing CPUIDLE_FLAG_POLLING_HARD > and tag mwait users with it. Well, if MWAIT users are the only category that will be tagged with the new flag, it can be called CPUIDLE_FLAG_POLLING_MWAIT or even CPUIDLE_FLAG_MWAIT for that matter and the $subject patch won't be necessary any more AFAICS. > This will allow cpuidle core to manage TIF_NR_POLLING on behalf of all > kinds of TIF_NEED_RESCHED polling states while keeping a necessary > distinction for the governors between software loops polling on > TIF_NEED_RESCHED and hardware monitored writes to thread flags. Fair enough, but what about using a different name for the new flag and leaving the old one as is?