Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27446
b: refs/heads/master
c: 484944a
h: refs/heads/master
v: v3
  • Loading branch information
Dave Jones committed May 30, 2006
1 parent e4b351b commit 7262af0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 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: 5557976ca97c3a3002805f575a45ad354e1050ff
refs/heads/master: 484944a5b002cf87b38a8f073d37afcfb8afff28
12 changes: 8 additions & 4 deletions trunk/drivers/cpufreq/freq_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,20 +91,24 @@ int cpufreq_frequency_table_target(struct cpufreq_policy *policy,
unsigned int relation,
unsigned int *index)
{
struct cpufreq_frequency_table optimal = { .index = ~0, };
struct cpufreq_frequency_table suboptimal = { .index = ~0, };
struct cpufreq_frequency_table optimal = {
.index = ~0,
.frequency = 0,
};
struct cpufreq_frequency_table suboptimal = {
.index = ~0,
.frequency = 0,
};
unsigned int i;

dprintk("request for target %u kHz (relation: %u) for cpu %u\n", target_freq, relation, policy->cpu);

switch (relation) {
case CPUFREQ_RELATION_H:
optimal.frequency = 0;
suboptimal.frequency = ~0;
break;
case CPUFREQ_RELATION_L:
optimal.frequency = ~0;
suboptimal.frequency = 0;
break;
}

Expand Down

0 comments on commit 7262af0

Please sign in to comment.