Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D1B89C433F5 for ; Mon, 16 May 2022 15:53:39 +0000 (UTC) Received: from localhost ([::1]:45508 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nqd2Q-0002OE-LV for qemu-devel@archiver.kernel.org; Mon, 16 May 2022 11:53:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqczT-0007x4-1P for qemu-devel@nongnu.org; Mon, 16 May 2022 11:50:35 -0400 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]:39688) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nqczP-0002Kn-2o for qemu-devel@nongnu.org; Mon, 16 May 2022 11:50:33 -0400 Received: by mail-pl1-x62f.google.com with SMTP id bh5so3025393plb.6 for ; Mon, 16 May 2022 08:50:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=I/3A8SUVUV2RC9p6q5CTxBgapEUdSZmisXM+TWCG4PY=; b=NSkuWycbqkqPGP9vfUeimhtoZCQDayaud5kMygayS7A5NmA71EgSSkMu/teuG44sYJ LVmh8xK8UK8WizfO65tsh8lYgcXf94+Uav2ZbU+KWD3d7MvYS8zBE3F51PSaOGehlVSn CHYqWGo8slef8N9ir5aMwaaq62XuIAbmhWy8Fltq74g+9K4mpsOurwYhNYM+qXhmdbGA EP1tRNoBH9T5Lg+9MSQHkp+Xwz+xsuF519P0yT5UY9tS7bvK7QvvmnpUYx0Np4MWhVs1 UUxNd6PBcf0pjWH3mv3LDWLvEz6HQUvbfV3H17IvsC5/SZWkvtuCP2B90xYGyyj9/TBd SSHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=I/3A8SUVUV2RC9p6q5CTxBgapEUdSZmisXM+TWCG4PY=; b=DXNwr6cdD0AfNGiWhI/pPafSwGRg36nPue2T7jtZ/nhySd/Dh0sKHlM6qkNfg//i88 eu+Nd2HMv5Wwon51DKiw62XTjubhgiCvqW2temrU4HJR0QWjrYcFEGEoV1LDubwkR/ft 2GuNLwuflLQ2U6Gw18PwfwlLxmpNJgZHC1LQyySBsXUzZi4bcDQR01diIPvphLemVc6m s/66s3nKq13ByUq2OE8Em7eAPvkJbf6nOOKOv4NVRUy879LzODD1T7whQcfXx+WZXmh/ 91HcSEhP40/weP86iozDggi669ux/6cc9EawSPXlWydWqgpzfCuRUt7bBzQWi1q0YeTl 7J7w== X-Gm-Message-State: AOAM532idAEAS0l33twRfRh9xgYFpKCnR7IlSzUn6IYjSV+/hwYO0mGz kqRNQcEoPyRsf9S8V4IDqFY/Yg== X-Google-Smtp-Source: ABdhPJzu6lk5kPrWHxfTEop1Zq18bUUQa9Hoh2WPtiqFbeZhe0PvRdA4cIVGO2NxGNW2LDuOGaLhXA== X-Received: by 2002:a17:902:c404:b0:15e:9aa2:3abc with SMTP id k4-20020a170902c40400b0015e9aa23abcmr18008603plk.172.1652716229528; Mon, 16 May 2022 08:50:29 -0700 (PDT) Received: from [192.168.1.6] ([71.212.142.129]) by smtp.gmail.com with ESMTPSA id f15-20020a62380f000000b0050dc76281c9sm6991795pfa.163.2022.05.16.08.50.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 May 2022 08:50:28 -0700 (PDT) Message-ID: Date: Mon, 16 May 2022 08:50:27 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH] ptimer: Rename PTIMER_POLICY_DEFAULT to PTIMER_POLICY_LEGACY Content-Language: en-US To: Peter Maydell , qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: "Edgar E. Iglesias" , Alistair Francis , Francisco Iglesias References: <20220516103058.162280-1-peter.maydell@linaro.org> From: Richard Henderson In-Reply-To: <20220516103058.162280-1-peter.maydell@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 5/16/22 03:30, Peter Maydell wrote: > The traditional ptimer behaviour includes a collection of weird edge > case behaviours. In 2016 we improved the ptimer implementation to > fix these and generally make the behaviour more flexible, with > ptimers opting in to the new behaviour by passing an appropriate set > of policy flags to ptimer_init(). For backwards-compatibility, we > defined PTIMER_POLICY_DEFAULT (which sets no flags) to give the old > weird behaviour. > > This turns out to be a poor choice of name, because people writing > new devices which use ptimers are misled into thinking that the > default is probably a sensible choice of flags, when in fact it is > almost always not what you want. Rename PTIMER_POLICY_DEFAULT to > PTIMER_POLICY_LEGACY and beef up the comment to more clearly say that > new devices should not be using it. > > The code-change part of this commit was produced by > sed -i -e 's/PTIMER_POLICY_DEFAULT/PTIMER_POLICY_LEGACY/g' $(git grep -l PTIMER_POLICY_DEFAULT) > > Signed-off-by: Peter Maydell > --- Reviewed-by: Richard Henderson with the ptimer-test.c string change already noted. r~