Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp42295rwi; Thu, 13 Oct 2022 21:02:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7Cfzard+MciDCA0y0Z/M1t18eqsxCSqt6G6DhhplLlEwumJrxM7J0+RKDVHJLusXyt13Sz X-Received: by 2002:a05:6a00:450d:b0:562:51ad:7cdf with SMTP id cw13-20020a056a00450d00b0056251ad7cdfmr2965794pfb.54.1665720145805; Thu, 13 Oct 2022 21:02:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665720145; cv=none; d=google.com; s=arc-20160816; b=gjVT5x+R4bQtHXYqn328C/VQ+YmLhZOMhXShZnf701TzyM+YzwqYYQSYkEIDOAMFkT rTTLfclcEsSEqiry4b/+7dri2fceq1ddo0+eBwsND6ylCnsvNYAUGzo0RXbVUSxRDGo4 RWpHX0Lv0lmJhKe0XlXGw4spTHBlJzIji7dad5jjsQ4AGTMGzMDlj9ZQdhGQIYR1rlQf Fh99a0JbNnu8lnvvwTN+mm1m/hAQfSUj/bUZ5SfxUegroCGerQ4WIYVgz9I7y2PdRp5h s4w79+1auK7ty9JDjSQxbZEP5MwY3EBmN+Wf1X0Fq2+s7RyRdewrWmOkVRW4sWb1wEVF lsSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=LVsk8+xfWTxPR5ySeiCGrcc1Y8kL8h4HaFQUJnSMzjs=; b=cBFf0CD/E6TcFh67CyAqKEf4ZHVwWsbZcBkgoplJsTx6D2+S2XnUzIFEYGpncFbTN8 kh/4t4T0V4mDHB4dcdlYFvfxLF5mIArIlRF73EZbS1/VhKzcRATRc/3s3VAthxjjITNw 7CZXPEdEVrd/Bb8Okimik9mM5QapCT7Qzn4hWmP/ZP90IDXIWofXKaf3zSQdOoYX0fS0 GwKN3F5CTs73b5hBh13TqIA+dLeCdqbbVHMYp711GTcAYdeKhQm1RF0zHSnRwHe7EfU/ LMimjooIaV/ncZhnVOrKuZfPI1AWb0xmnXO1UmRCHAe1WiKoQ2tU5jXZAmD3IFCvbm5Z Hogg== 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 l190-20020a6391c7000000b0046b127a88d5si1301992pge.552.2022.10.13.21.02.10; Thu, 13 Oct 2022 21:02:25 -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 S229613AbiJNDu0 (ORCPT + 99 others); Thu, 13 Oct 2022 23:50:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229888AbiJNDuW (ORCPT ); Thu, 13 Oct 2022 23:50:22 -0400 Received: from mail.nfschina.com (unknown [124.16.136.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1F54D10055; Thu, 13 Oct 2022 20:50:18 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 9B99B1E80D90; Fri, 14 Oct 2022 11:50:12 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (mail.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a4pEWmYfR3Is; Fri, 14 Oct 2022 11:50:10 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: kunyu@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 503A51E80D53; Fri, 14 Oct 2022 11:50:09 +0800 (CST) From: Li kunyu To: skhan@linuxfoundation.org Cc: kunyu@nfschina.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, ray.huang@amd.com, shuah@kernel.org, trenn@suse.com Subject: Re: [PATCH] power: cpupower: utils: Optimize print_online_cpus and print_offline_cpus function Date: Fri, 14 Oct 2022 11:49:56 +0800 Message-Id: <20221014034957.297865-1-kunyu@nfschina.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <7e2043b9-c7fa-236e-de19-5e290deebbdf@linuxfoundation.org> References: <7e2043b9-c7fa-236e-de19-5e290deebbdf@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,MAY_BE_FORGED, SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 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 OK, I will make a new patch to determine the malloc memory allocation.