Received: by 2002:a05:6358:795:b0:dc:4c66:fc3e with SMTP id n21csp764009rwj; Sat, 29 Oct 2022 10:24:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5llqcdqBEzPgG8dRBC+0njVRBiyudz1/W44CyQoJzaLXl225Y1JO44lDxiJC/nnHCQdAht X-Received: by 2002:a17:90b:384e:b0:213:7c41:1018 with SMTP id nl14-20020a17090b384e00b002137c411018mr5806285pjb.63.1667064277347; Sat, 29 Oct 2022 10:24:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667064277; cv=none; d=google.com; s=arc-20160816; b=Gbx9h5YBqyvE69e+2DxooE2BXx55/6veDgN294i4DPF/Qlkq8oWLLKJNIAUZUnfh9s PUSsAA4U98F4IFg7qFPAw0Q1na5g6fi/LkC4kWuo+nPUmp1mUBZit8FBC6EnjZ+c25a5 hgA2DXNmp5ASMC3o5rq48xwNoMOKifoX53cASbwTlCe+n7xhteznw9VUrwzv+TwCQcmu YFX6gKHMANjWS3GvxIDSkfjp5oFdjmMf9N+AkiKHjlF8wAtypxWKecAYqCDdIjlBh8JM gvU51hJwwT+aLmX2puz7nVA/SfTsBT3ll14EFtRYeIjj6SXNH7HnfWR87ebm+j+JLeR0 NZUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:mime-version :content-transfer-encoding:subject:cc:to:from:date; bh=qzzu8e07ZcWm9393EN68309LUBbDXktbjE3xVxjk0Ds=; b=eKbQyK2A2wbnLApqUkjhAxTuD3dW/kBedbuPpkSFvQGVuGDpZt8CZZoEbzbxZ6y92A AdXKf/iQw/q+xM+0vZ+MJrgZLpQUBWCFAO+4H8ERQxWu99q+UHsPRz6DqNyqxzmHQ/Qx DgxQVsc50aOj0vGFZ+fZnNVeW2xMdjvH2cQBwqp68qd0JSw02pxCJj4k6hTFAuCC0ROA L3heSv5xFszjohqVwBJOzd0Dt873ShxnB5asvsqB9sS/mXLPUgZsfvdO7+0QB6S0n1Fd fn2MLIVPtAeAjvWHmFhWqwNGEHsPqUSfZnL0rMAXYe0vcrCsoic/GxTPgWmvM7bwtQbT XaPA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j6-20020a056a00130600b00563ad44ddf9si2472441pfu.380.2022.10.29.10.24.23; Sat, 29 Oct 2022 10:24:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229632AbiJ2PgW (ORCPT + 99 others); Sat, 29 Oct 2022 11:36:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbiJ2PgV (ORCPT ); Sat, 29 Oct 2022 11:36:21 -0400 Received: from jari.cn (unknown [218.92.28.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E32ECB3D for ; Sat, 29 Oct 2022 08:36:20 -0700 (PDT) Received: by ajax-webmail-localhost.localdomain (Coremail) ; Sat, 29 Oct 2022 23:31:43 +0800 (GMT+08:00) X-Originating-IP: [182.148.13.81] Date: Sat, 29 Oct 2022 23:31:43 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: wangkailong@jari.cn To: airlied@gmail.com, daniel@ffwll.ch, evan.quan@amd.com, alexander.deucher@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com Cc: darren.powell@amd.com, aleksei.kodanev@bell-sw.com, tangmeng@uniontech.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/amd/pm: replace ternary operator with max() X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT6.0.1 build 20210329(c53f3fee) Copyright (c) 2002-2022 www.mailtech.cn mispb-4e503810-ca60-4ec8-a188-7102c18937cf-zhkzyfz.cn Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=UTF-8 MIME-Version: 1.0 Message-ID: <3b1eb0d7.3f.184245eccc6.Coremail.wangkailong@jari.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: AQAAfwCHj+BfR11j5+AAAA--.10W X-CM-SenderInfo: 5zdqwypdlo00nj6mt2flof0/1tbiAQAOB2FEYx0BJQAFsy X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWxJw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00,RCVD_IN_PBL,RDNS_NONE, T_SPF_HELO_PERMERROR,T_SPF_PERMERROR,XPRIO autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rml4IHRoZSBmb2xsb3dpbmcgY29jY2ljaGVjayB3YXJuaW5nOgpkcml2ZXJzL2dwdS9kcm0vYW1k L3BtL3Bvd2VycGxheS9od21nci92ZWdhMTBfaHdtZ3IuYzozNDg6ODUtODY6CldBUk5JTkcgb3Bw b3J0dW5pdHkgZm9yIG1heCgpCmRyaXZlcnMvZ3B1L2RybS9hbWQvcG0vcG93ZXJwbGF5L2h3bWdy L3ZlZ2ExMF9od21nci5jOjM1MTo1Mi01MzoKV0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