Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2022633ybe; Thu, 12 Sep 2019 03:19:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzUaMct9jmSi7waOGOvfnpS5kJGEdLJWLjV3WDawEKGxZP4m7Fmc9tyQRtTNoR/HPnAkTLm X-Received: by 2002:a50:b0c6:: with SMTP id j64mr41230438edd.267.1568283562067; Thu, 12 Sep 2019 03:19:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568283562; cv=none; d=google.com; s=arc-20160816; b=iQ/V9n8+akfbmNPNX+3Mgc0tMLpepqU4pBr4UK0VIu7G4rb/dG5UnX+MWjqkizUbZy ezlljXsZwv/5FjADPbF2CrWEP5fLLB5GohbRqK1ae1c5h+2N/UeIxe50L0V66DH2iqt2 kkS2setYepDqJ9NBF3u27TDhWw8emiHKmik4fmYzyk8RaNTtRZn1DNr5e/mcTtJvcw+m Cirzr0uq+G6HDpc531nUqULeEZxIaUrvYwullepTnHlOYsGS9ieBWOFShZJ7KfJmTMaK yMi2fuhx/DcKfC8YCiICq2+1wweqPQ6KW0xvGwRwJlonB0vCUv3IaVZsRwEEVxY0t38P LPqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=bNvwZC2hY441ubGi9lPjRuRYtmG+Z5KttAPw/Wz8ziQ=; b=rxe3r1nixow/n9asP0B9DCwej/LoM4aDM5kwXL8YOlvdlgT1uttcReEuYLSvLSpbnI ZBWoO/IpbNZSM6eKh9gTKon2HsU1rZ4eQONhW9pTcBv2uIX7Bdz/vGZJg2oBlu5mYglf 1TBATFABv91SsrMoNUXm4lm3V0lsQ8SJ93qfZ7jM8lZ3ViciVlVV3XPnwCHtHmDB2VC6 IvKLkvJ8XaxsA5D+ERUEVq58xY0akaCh5ef4Tnt8xKo+NJc/tTAD7VoKCmLpRRUVux/5 4DljtG8CXBeISYJP+V7Kg3IsxNZSa0OQQyZhA1HWCTvNActuKIv3WQ18dETAcwPcjO8Z cqWw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v31si14590041edm.402.2019.09.12.03.18.58; Thu, 12 Sep 2019 03:19:22 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730978AbfILKQn (ORCPT + 99 others); Thu, 12 Sep 2019 06:16:43 -0400 Received: from mx2.suse.de ([195.135.220.15]:40722 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730454AbfILKQn (ORCPT ); Thu, 12 Sep 2019 06:16:43 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id CB8ABAE53; Thu, 12 Sep 2019 10:16:41 +0000 (UTC) From: Thomas Renninger To: Abhishek Cc: shuah , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, "Gautham R. Shenoy" , Thomas Renninger Subject: Re: [PATCH] cpupower : Handle set and info subcommands for powerpc Date: Thu, 12 Sep 2019 12:16:41 +0200 Message-ID: <4161437.KdBApSEpf3@skinner.arch.suse.de> In-Reply-To: References: <20190911095424.49605-1-huntbag@linux.vnet.ibm.com> <3326dc53-f8a1-dd7b-5ae8-b86ef5ef8b24@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday, September 12, 2019 11:43:40 AM CEST Abhishek wrote: > Hi Shuah, > > Thanks for the review. Few comments below. ... > Since these two options are not being used by any other architecture > except x86, I suggest these options should not even be shown for > other architecture. So we can do something like this in cpupower.c : > > static struct cmd_struct commands[] = { > ............. > +#if defined (__x86_64__) || defined (__i386__) > { "set", cmd_set, 1 }, > { "info", cmd_info, 0 }, > +#endif > .............. > > Is this Okay? No, I expected you to add something meaningful for Power case... Just kidding. If this works without any side-effects in not x86 case, this approach seem to be the best solution for now. Thanks. Thomas