Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 25905
b: refs/heads/master
c: 530515a
h: refs/heads/master
i:
  25903: 9e688bf
v: v3
  • Loading branch information
jacob.shin@amd.com authored and Dave Jones committed Apr 10, 2006
1 parent dc77616 commit 408b28d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b40fc4923ee3352c44ac2c0bd5f4d6018d6c4ad7
refs/heads/master: 530515a06f90c0831732709efee4a99497bd2b7c
8 changes: 7 additions & 1 deletion trunk/arch/i386/kernel/cpu/cpufreq/powernow-k8.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

#define PFX "powernow-k8: "
#define BFX PFX "BIOS error: "
#define VERSION "version 1.60.1"
#define VERSION "version 1.60.2"
#include "powernow-k8.h"

/* serialize freq changes */
Expand Down Expand Up @@ -910,6 +910,9 @@ static int powernowk8_target(struct cpufreq_policy *pol, unsigned targfreq, unsi
unsigned int newstate;
int ret = -EIO;

if (!data)
return -EINVAL;

/* only run on specific CPU from here on */
oldmask = current->cpus_allowed;
set_cpus_allowed(current, cpumask_of_cpu(pol->cpu));
Expand Down Expand Up @@ -969,6 +972,9 @@ static int powernowk8_verify(struct cpufreq_policy *pol)
{
struct powernow_k8_data *data = powernow_data[pol->cpu];

if (!data)
return -EINVAL;

return cpufreq_frequency_table_verify(pol, data->powernow_table);
}

Expand Down

0 comments on commit 408b28d

Please sign in to comment.