lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20090611152609.8510.77996.sendpatchset@linux-fd7s.americas.hpqcorp.net>
Date:	Thu, 11 Jun 2009 15:26:54 +0000 (UTC)
From:	Naga Chumbalkar <nagananda.chumbalkar@...com>
To:	davej@...emonkey.org.uk
Cc:	Naga Chumbalkar <nagananda.chumbalkar@...com>,
	andreas.herrmann3@....com, linux-kernel@...r.kernel.org,
	cpufreq@...r.kernel.org, mark.langsdorf@....com, trenn@...e.de
Subject: [PATCH 2/2] powernow-k8: get drv data for correct CPU


Make powernowk8_get() similar to powernowk8_target() and powernowk8_verify()
in the way it obtains "powernow_data" for a given CPU.

Cc: Andreas Herrmann <andreas.herrmann3@....com>
Cc: Langsdorf, Mark <mark.langsdorf@....com>
Cc: Thomas Renninger <trenn@...e.de>

Signed-off-by: Naga Chumbalkar <nagananda.chumbalkar@...com>
Reviewed-by: Andreas Herrmann <andreas.herrmann3@....com>
Tested-by: Andreas Herrmann <andreas.herrmann3@....com>
Acked-by: Langsdorf, Mark <mark.langsdorf@....com>
Signed-off-by: Thomas Renninger <trenn@...e.de>

---
 arch/x86/kernel/cpu/cpufreq/powernow-k8.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/arch/x86/kernel/cpu/cpufreq/powernow-k8.c b/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
index 700ede9..069c825 100644
--- a/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
+++ b/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
@@ -1371,13 +1371,9 @@ static int __devexit powernowk8_cpu_exit(struct cpufreq_policy *pol)
 
 static unsigned int powernowk8_get(unsigned int cpu)
 {
-	struct powernow_k8_data *data;
+	struct powernow_k8_data *data = per_cpu(powernow_data, cpu);
 	cpumask_t oldmask = current->cpus_allowed;
 	unsigned int khz = 0;
-	unsigned int first;
-
-	first = cpumask_first(cpu_core_mask(cpu));
-	data = per_cpu(powernow_data, first);
 
 	if (!data)
 		return -EINVAL;
-- 
1.6.2.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ