Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2028956ybe; Thu, 12 Sep 2019 03:26:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqyCQAEIyyrfhSVduq2JjoF26O44GlnHGwjnFR7VV/csjN7OybpcEnhnFSmaP2/44lHeEW1Q X-Received: by 2002:a17:906:1f03:: with SMTP id w3mr16758582ejj.31.1568283970390; Thu, 12 Sep 2019 03:26:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568283970; cv=none; d=google.com; s=arc-20160816; b=xY93UU6x6d0ejVNTnULraymozqpLpfZ+lWDxeNPrAMhBjueOg/sf8QOt/lm7qwBg9C jcHJGEGpeo2I3zmeHRQg0b5k/eC3bNzr9wjvs9Yh5IiXD3ghSc1V0hYZzL+vmdtqChr6 3I5+XddVLOT9rEzDfN5jZKWrqalaZgPKbj1GWVgLefOOVghuUWDv1ieK+faXcWI8ww2h FLO6J6c+GKpe9OlisNxF0MArw/jNCd2OSO9gAnMxEQZdMc64xkL794A+Artk7mbNUekk zhehs49BRFDUKzWmNbi+08id2NmZynYZjXqfoybqjd6awEHmYl7/GX4l2hWd5EHJ1Ypw iIww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :from:references:cc:to:subject; bh=AHy8ZATJn+fD81Ke6RgGhDtKmZ4/lKjsfo01WMiPuog=; b=at033THr2FEI7H3/w1uuCCUtDdSodJhR0XusN6qx/qFAhsAJxLQ8xCrN/kicwhW2G7 OGKXj0BzRwJnnMiOzG1CZXjHjjsSmlK0q9tzXa78i3q7Ne15Q4EDv4rYSdhMatVR28cg yed+RGR8bAqa+hQmZfVQIqbH586s8w4TZaQErXmW9/NYjIWuPdZOsp2O464AiJbJhVcp CJWhp72lWWkcx9y9Mqi2kJJbqC9kvGF4mkR6BnmfTjFnj/eKrxa5T19LA1MMMd2msAUg A+SMYKLGRjKsMu/iEMAWjUOnGZye3r0AmXveZrUm2euWziUTvqx9I0V51UUwiXLF0LIy 559A== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k4si12274995ejd.325.2019.09.12.03.25.46; Thu, 12 Sep 2019 03:26:10 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730923AbfILKXu (ORCPT + 99 others); Thu, 12 Sep 2019 06:23:50 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:31132 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730454AbfILKXu (ORCPT ); Thu, 12 Sep 2019 06:23:50 -0400 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x8CAMvvr054786 for ; Thu, 12 Sep 2019 06:23:49 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2uyjwru42x-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 12 Sep 2019 06:23:48 -0400 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 12 Sep 2019 11:23:46 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 12 Sep 2019 11:23:44 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x8CANhoC47120638 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 12 Sep 2019 10:23:43 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C6C634C04A; Thu, 12 Sep 2019 10:23:43 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CD6014C044; Thu, 12 Sep 2019 10:23:42 +0000 (GMT) Received: from oc0383214508.ibm.com (unknown [9.124.35.231]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 12 Sep 2019 10:23:42 +0000 (GMT) Subject: Re: [PATCH] cpupower : Handle set and info subcommands for powerpc To: Thomas Renninger Cc: shuah , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, "Gautham R. Shenoy" References: <20190911095424.49605-1-huntbag@linux.vnet.ibm.com> <3326dc53-f8a1-dd7b-5ae8-b86ef5ef8b24@kernel.org> <4161437.KdBApSEpf3@skinner.arch.suse.de> From: Abhishek Date: Thu, 12 Sep 2019 15:53:42 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <4161437.KdBApSEpf3@skinner.arch.suse.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-TM-AS-GCONF: 00 x-cbid: 19091210-4275-0000-0000-00000364D45F X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19091210-4276-0000-0000-000038772EBD Message-Id: <17ce06dd-9baf-e0d1-df64-4b81787b2000@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-09-12_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1909120110 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 09/12/2019 03:46 PM, Thomas Renninger wrote: > 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... Haha. Will add something meaningful later... (One of the suggestion has already been given by you) > > 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 > > -- Abhishek