GIT 530515a06f90c0831732709efee4a99497bd2b7c git+ssh://master.kernel.org/pub/scm/linux/kernel/git/davej/cpufreq.git commit 530515a06f90c0831732709efee4a99497bd2b7c Author: jacob.shin@amd.com Date: Fri Apr 7 19:49:51 2006 +0200 [CPUFREQ] x86_64: Proper null pointer check in powernow_k8_get This prevents crashes on dual core system when enough ticks are lost. Replaces earlier patch by me. (Duplicate null data check in powernowk8_get() removed -- davej) arch/i386/kernel/cpu/cpufreq/powernow-k8.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) Signed-off-by: Thomas Renninger Signed-off-by: Andi Kleen Signed-off-by: Dave Jones commit b40fc4923ee3352c44ac2c0bd5f4d6018d6c4ad7 Author: Andi Kleen Date: Fri Apr 7 19:49:48 2006 +0200 [CPUFREQ] x86_64: Revert earlier powernow-k8 change (Better fix to be applied in next patch) Signed-off-by: Andi Kleen Signed-off-by: Dave Jones commit 4c41251e31982002bca0ce7e903c0cc66218c1ec Author: Erik Mouw Date: Mon Apr 3 14:21:00 2006 +0200 [CPUFREQ] Update LART site URL Update LART site URL. The LART website moved to http://www.lartmaker.nl/. This patch updates the URL in CpuFreq specific files. Signed-off-by: Erik Mouw Signed-off-by: Dave Jones commit b82fbe6c4232365272bde6f2c3f8fd9dd4dcd73a Author: Dave Jones Date: Sat Apr 1 22:07:07 2006 -0500 [CPUFREQ] Remove pointless check in conservative governor. < 0 checks on unsigned variables are pointless. Signed-off-by: Dave Jones commit 87c32271380e630955de365656f67b0a54b75b19 Author: Dave Jones Date: Wed Mar 29 01:48:37 2006 -0500 [CPUFREQ] trailing whitespace removal de-jour. Signed-off-by: Dave Jones commit 1f8b2c9d38c132e79e18cc726cf7a40ebdcb56d9 Author: Dave Jones Date: Wed Mar 29 01:40:04 2006 -0500 [CPUFREQ] extra debugging in cpufreq_add_dev() Snipped from an otherwise rejected patch by Jan Beulich Signed-off-by: Dave Jones --- Signed-off-by: Andrew Morton --- i386/kernel/cpu/cpufreq/powernow-k8.c | 0 Documentation/cpu-freq/index.txt | 2 +- drivers/cpufreq/Kconfig | 2 +- drivers/cpufreq/cpufreq.c | 7 +++---- drivers/cpufreq/cpufreq_conservative.c | 6 ++---- 5 files changed, 7 insertions(+), 10 deletions(-) diff -puN arch/i386/kernel/cpu/cpufreq/powernow-k8.c~git-cpufreq arch/i386/kernel/cpu/cpufreq/powernow-k8.c diff -puN Documentation/cpu-freq/index.txt~git-cpufreq Documentation/cpu-freq/index.txt --- devel/Documentation/cpu-freq/index.txt~git-cpufreq 2006-04-17 21:21:14.000000000 -0700 +++ devel-akpm/Documentation/cpu-freq/index.txt 2006-04-17 21:21:14.000000000 -0700 @@ -53,4 +53,4 @@ the CPUFreq Mailing list: * http://lists.linux.org.uk/mailman/listinfo/cpufreq Clock and voltage scaling for the SA-1100: -* http://www.lart.tudelft.nl/projects/scaling +* http://www.lartmaker.nl/projects/scaling diff -puN drivers/cpufreq/cpufreq.c~git-cpufreq drivers/cpufreq/cpufreq.c --- devel/drivers/cpufreq/cpufreq.c~git-cpufreq 2006-04-17 21:21:14.000000000 -0700 +++ devel-akpm/drivers/cpufreq/cpufreq.c 2006-04-17 21:21:16.000000000 -0700 @@ -685,7 +685,7 @@ static int cpufreq_add_dev (struct sys_d if (!cpu_online(j)) continue; - dprintk("CPU already managed, adding link\n"); + dprintk("CPU %u already managed, adding link\n", j); cpufreq_cpu_get(cpu); cpu_sys_dev = get_cpu_sysdev(j); sysfs_create_link(&cpu_sys_dev->kobj, &policy->kobj, @@ -695,9 +695,8 @@ static int cpufreq_add_dev (struct sys_d policy->governor = NULL; /* to assure that the starting sequence is * run in cpufreq_set_policy */ mutex_unlock(&policy->lock); - + /* set default policy */ - ret = cpufreq_set_policy(&new_policy); if (ret) { dprintk("setting policy failed\n"); @@ -707,7 +706,7 @@ static int cpufreq_add_dev (struct sys_d module_put(cpufreq_driver->owner); dprintk("initialization complete\n"); cpufreq_debug_enable_ratelimit(); - + return 0; diff -puN drivers/cpufreq/cpufreq_conservative.c~git-cpufreq drivers/cpufreq/cpufreq_conservative.c --- devel/drivers/cpufreq/cpufreq_conservative.c~git-cpufreq 2006-04-17 21:21:14.000000000 -0700 +++ devel-akpm/drivers/cpufreq/cpufreq_conservative.c 2006-04-17 21:21:16.000000000 -0700 @@ -176,8 +176,7 @@ static ssize_t store_up_threshold(struct ret = sscanf (buf, "%u", &input); mutex_lock(&dbs_mutex); - if (ret != 1 || input > 100 || input < 0 || - input <= dbs_tuners_ins.down_threshold) { + if (ret != 1 || input > 100 || input <= dbs_tuners_ins.down_threshold) { mutex_unlock(&dbs_mutex); return -EINVAL; } @@ -196,8 +195,7 @@ static ssize_t store_down_threshold(stru ret = sscanf (buf, "%u", &input); mutex_lock(&dbs_mutex); - if (ret != 1 || input > 100 || input < 0 || - input >= dbs_tuners_ins.up_threshold) { + if (ret != 1 || input > 100 || input >= dbs_tuners_ins.up_threshold) { mutex_unlock(&dbs_mutex); return -EINVAL; } diff -puN drivers/cpufreq/Kconfig~git-cpufreq drivers/cpufreq/Kconfig --- devel/drivers/cpufreq/Kconfig~git-cpufreq 2006-04-17 21:21:14.000000000 -0700 +++ devel-akpm/drivers/cpufreq/Kconfig 2006-04-17 21:21:16.000000000 -0700 @@ -99,7 +99,7 @@ config CPU_FREQ_GOV_USERSPACE Enable this cpufreq governor when you either want to set the CPU frequency manually or when an userspace program shall be able to set the CPU dynamically, like on LART - + . For details, take a look at . _