From patchwork Fri Apr 17 14:22:06 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Renninger X-Patchwork-Id: 18677 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n3HEKi7L024232 for ; Fri, 17 Apr 2009 14:22:22 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760790AbZDQOWV (ORCPT ); Fri, 17 Apr 2009 10:22:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1761034AbZDQOWV (ORCPT ); Fri, 17 Apr 2009 10:22:21 -0400 Received: from cantor.suse.de ([195.135.220.2]:43589 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760790AbZDQOWO (ORCPT ); Fri, 17 Apr 2009 10:22:14 -0400 Received: from Relay1.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 086699295B; Fri, 17 Apr 2009 16:22:12 +0200 (CEST) From: Thomas Renninger To: lenb@kernel.org Cc: linux-acpi@vger.kernel.org, cpufreq@vger.kernel.org, venkatesh.pallipadi@intel.com, Thomas Renninger Subject: [PATCH 2/8] acpi-cpufreq: Cleanup: Use printk_once Date: Fri, 17 Apr 2009 16:22:06 +0200 Message-Id: <1239978132-6261-3-git-send-email-trenn@suse.de> X-Mailer: git-send-email 1.6.0.2 In-Reply-To: <1239978132-6261-1-git-send-email-trenn@suse.de> References: <1239978132-6261-1-git-send-email-trenn@suse.de> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org Signed-off-by: Thomas Renninger Cc: Cc: "Pallipadi, Venkatesh" Cc: --- arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c b/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c index ed43734..4475523 100644 --- a/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c +++ b/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c @@ -693,13 +693,9 @@ static int acpi_cpufreq_cpu_init(struct cpufreq_policy *policy) /* Check for high latency (>20uS) from buggy BIOSes, like on T42 */ if (perf->control_register.space_id == ACPI_ADR_SPACE_FIXED_HARDWARE && policy->cpuinfo.transition_latency > 20 * 1000) { - static int print_once; policy->cpuinfo.transition_latency = 20 * 1000; - if (!print_once) { - print_once = 1; - printk(KERN_INFO "Capping off P-state tranision latency" - " at 20 uS\n"); - } + printk_once(KERN_INFO "Capping off P-state tranision" + " latency at 20 uS\n"); } data->max_freq = perf->states[0].core_frequency * 1000;