From patchwork Wed Nov 12 03:41:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 40636 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 33EA3206A5 for ; Wed, 12 Nov 2014 03:42:07 +0000 (UTC) Received: by mail-lb0-f197.google.com with SMTP id b6sf842231lbj.0 for ; Tue, 11 Nov 2014 19:42:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:mime-version:in-reply-to:references :date:message-id:subject:from:to:cc:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=mLDjepVW957CSGDl8Eif6C628nLU3vjQxGg+ZKMPVdY=; b=Nx5cO7pyN68vUKyqlU6HJCRdgYifX3jGgMfi7Y6B5Nf4s1Mk/xubbQIaMXTIvttdZf 5nrMNe51+77fk3nzbgXpshw0yDwEPmgblPNIZXT450CF3W+oLUgiPJyWR8YejP+15n/Q oIN2padPuC/ptsYd2vZXWtB8PVSRAspPXBoRXfYx7gH6wGviJGZgUCCcUI+fP+9k8GX4 2uWIJ1dfd/r3fdE/8/91DWjbHcUAM8ZWINAVn1Tg3ZFNNxYF6id26XxAZYvNsc+cnNd/ W030athNwKCYPOM+9OAsuGTpIV46q7BI8uHPcYkCLrfrSRHygwl/stJYu2Yme80KzYnt +O7A== X-Gm-Message-State: ALoCoQkP7AO+/D8Mdqcee0GX5Hqy58kJnFX50FimqsLda1HKfmS4KYgCKrvTFlX80Z1jE1zfciU/ X-Received: by 10.152.42.171 with SMTP id p11mr7345983lal.4.1415763726101; Tue, 11 Nov 2014 19:42:06 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.227 with SMTP id v3ls681721lav.91.gmail; Tue, 11 Nov 2014 19:42:05 -0800 (PST) X-Received: by 10.152.20.199 with SMTP id p7mr39963019lae.49.1415763725876; Tue, 11 Nov 2014 19:42:05 -0800 (PST) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id jw6si33358902lbc.101.2014.11.11.19.42.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 11 Nov 2014 19:42:05 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by mail-lb0-f176.google.com with SMTP id 10so8777352lbg.35 for ; Tue, 11 Nov 2014 19:42:05 -0800 (PST) X-Received: by 10.152.4.229 with SMTP id n5mr37253248lan.1.1415763725758; Tue, 11 Nov 2014 19:42:05 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.184.201 with SMTP id ew9csp363931lbc; Tue, 11 Nov 2014 19:42:04 -0800 (PST) X-Received: by 10.70.91.71 with SMTP id cc7mr14673831pdb.79.1415763724072; Tue, 11 Nov 2014 19:42:04 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xn7si13898632pbc.105.2014.11.11.19.42.03 for ; Tue, 11 Nov 2014 19:42:04 -0800 (PST) Received-SPF: none (google.com: linux-pm-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751991AbaKLDmB (ORCPT + 12 others); Tue, 11 Nov 2014 22:42:01 -0500 Received: from mail-ob0-f182.google.com ([209.85.214.182]:64094 "EHLO mail-ob0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751976AbaKLDl7 (ORCPT ); Tue, 11 Nov 2014 22:41:59 -0500 Received: by mail-ob0-f182.google.com with SMTP id nt9so9257036obb.13 for ; Tue, 11 Nov 2014 19:41:58 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.182.163.33 with SMTP id yf1mr36551426obb.0.1415763718831; Tue, 11 Nov 2014 19:41:58 -0800 (PST) Received: by 10.182.233.170 with HTTP; Tue, 11 Nov 2014 19:41:58 -0800 (PST) In-Reply-To: <1415732980.15957.33.camel@freescale.com> References: <1413515616-15874-1-git-send-email-B29983@freescale.com> <6aaa50ef5f234fe2896f1c66eb646dfb@DM2PR03MB574.namprd03.prod.outlook.com> <1415732980.15957.33.camel@freescale.com> Date: Wed, 12 Nov 2014 09:11:58 +0530 Message-ID: Subject: Re: [PATCH] cpufreq: qoriq: Make the driver usable on all QorIQ platforms From: Viresh Kumar To: Scott Wood Cc: Yuantian Tang , "linuxppc-dev@ozlabs.org" , "Rafael J. Wysocki" , Linux Kernel Mailing List , "linux-pm@vger.kernel.org" Sender: linux-pm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , On 12 November 2014 00:39, Scott Wood wrote: > What purpose do those " CPU frequency scaling drivers" submenus > serve, versus just including the options in the main cpufreq menu? It's > not as if more than one arch would be visible at once (and when a > situation with multiple visible menus popped up, it was considered a > bug). Oh, that really looks fine to me. I will send it formally as well: --- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig index 3489f8f..a24d678 100644 --- a/drivers/cpufreq/Kconfig +++ b/drivers/cpufreq/Kconfig @@ -196,19 +196,19 @@ config CPUFREQ_DT If in doubt, say N. -menu "x86 CPU frequency scaling drivers" -depends on X86 +if X86 source "drivers/cpufreq/Kconfig.x86" -endmenu +endif -menu "ARM CPU frequency scaling drivers" -depends on ARM || ARM64 +if ARM || ARM64 source "drivers/cpufreq/Kconfig.arm" -endmenu +endif -menu "AVR32 CPU frequency scaling drivers" -depends on AVR32 +if PPC32 || PPC64 +source "drivers/cpufreq/Kconfig.powerpc" +endif +if AVR32 config AVR32_AT32AP_CPUFREQ bool "CPU frequency driver for AT32AP" depends on PLATFORM_AT32AP @@ -216,12 +216,9 @@ config AVR32_AT32AP_CPUFREQ help This enables the CPU frequency driver for AT32AP processors. If in doubt, say N. +endif -endmenu - -menu "CPUFreq processor drivers" -depends on IA64 - +if IA64 config IA64_ACPI_CPUFREQ tristate "ACPI Processor P-States driver" depends on ACPI_PROCESSOR @@ -232,12 +229,9 @@ config IA64_ACPI_CPUFREQ For details, take a look at . If in doubt, say N. +endif -endmenu - -menu "MIPS CPUFreq processor drivers" -depends on MIPS - +if MIPS config LOONGSON2_CPUFREQ tristate "Loongson2 CPUFreq Driver" help @@ -249,16 +243,9 @@ config LOONGSON2_CPUFREQ For details, take a look at . If in doubt, say N. +endif -endmenu - -menu "PowerPC CPU frequency scaling drivers" -depends on PPC32 || PPC64 -source "drivers/cpufreq/Kconfig.powerpc" -endmenu - -menu "SPARC CPU frequency scaling drivers" -depends on SPARC64 +if SPARC64 config SPARC_US3_CPUFREQ tristate "UltraSPARC-III CPU Frequency driver" help @@ -276,10 +263,9 @@ config SPARC_US2E_CPUFREQ For details, take a look at . If in doubt, say N. -endmenu +endif -menu "SH CPU Frequency scaling" -depends on SUPERH +if SUPERH config SH_CPU_FREQ tristate "SuperH CPU Frequency driver" help @@ -293,7 +279,7 @@ config SH_CPU_FREQ For details, take a look at . If unsure, say N. -endmenu +endif endif endmenu