Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23845
b: refs/heads/master
c: ad90573
h: refs/heads/master
i:
  23843: 661fb54
v: v3
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Mar 25, 2006
1 parent e5eee3b commit ca4101a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 0085979006fd55ec7c2f721bdaa9af130a08d62a
refs/heads/master: ad90573f93533ddf1035b0468ed27b4453e50c46
7 changes: 4 additions & 3 deletions trunk/arch/i386/kernel/cpu/cpufreq/powernow-k8.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ static DECLARE_MUTEX(fidvid_sem);
static struct powernow_k8_data *powernow_data[NR_CPUS];

#ifndef CONFIG_SMP
static cpumask_t cpu_core_map[1];
static cpumask_t cpu_core_map[1] = { CPU_MASK_ALL };
#endif

/* Return a frequency in MHz, given an input fid */
Expand Down Expand Up @@ -976,7 +976,7 @@ static int __cpuinit powernowk8_cpu_init(struct cpufreq_policy *pol)
{
struct powernow_k8_data *data;
cpumask_t oldmask = CPU_MASK_ALL;
int rc;
int rc, i;

if (!cpu_online(pol->cpu))
return -ENODEV;
Expand Down Expand Up @@ -1062,7 +1062,8 @@ static int __cpuinit powernowk8_cpu_init(struct cpufreq_policy *pol)
printk("cpu_init done, current fid 0x%x, vid 0x%x\n",
data->currfid, data->currvid);

powernow_data[pol->cpu] = data;
for_each_cpu_mask(i, cpu_core_map[pol->cpu])
powernow_data[i] = data;

return 0;

Expand Down

0 comments on commit ca4101a

Please sign in to comment.