Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351039
b: refs/heads/master
c: 62b36cc
h: refs/heads/master
i:
  351037: 3ad105d
  351035: c0f4563
  351031: e2d72f5
  351023: a254596
  351007: 74ef8cf
  350975: dec9faa
v: v3
  • Loading branch information
Viresh Kumar authored and Rafael J. Wysocki committed Feb 2, 2013
1 parent 334c446 commit bebd8c2
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 9 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: 4c738d00cf5866a0b114ceb41d736a4a803f0c46
refs/heads/master: 62b36cc1c83aca1cd252772e82cbc5d9ef8ff25b
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-tegra/cpu-tegra.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ static int tegra_cpu_init(struct cpufreq_policy *policy)
/* FIXME: what's the actual transition time? */
policy->cpuinfo.transition_latency = 300 * 1000;

policy->shared_type = CPUFREQ_SHARED_TYPE_ALL;
cpumask_copy(policy->cpus, cpu_possible_mask);

if (policy->cpu == 0)
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/cpufreq/cpufreq-cpu0.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ static int cpu0_cpufreq_init(struct cpufreq_policy *policy)
* share the clock and voltage and clock. Use cpufreq affected_cpus
* interface to have all CPUs scaled together.
*/
policy->shared_type = CPUFREQ_SHARED_TYPE_ANY;
cpumask_setall(policy->cpus);

cpufreq_frequency_table_get_attr(freq_table, policy->cpu);
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/cpufreq/db8500-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,6 @@ static int __cpuinit db8500_cpufreq_init(struct cpufreq_policy *policy)
/* policy sharing between dual CPUs */
cpumask_setall(policy->cpus);

policy->shared_type = CPUFREQ_SHARED_TYPE_ALL;

return 0;
}

Expand Down
4 changes: 1 addition & 3 deletions trunk/drivers/cpufreq/omap-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,8 @@ static int __cpuinit omap_cpu_init(struct cpufreq_policy *policy)
* interface to handle this scenario. Additional is_smp() check
* is to keep SMP_ON_UP build working.
*/
if (is_smp()) {
policy->shared_type = CPUFREQ_SHARED_TYPE_ANY;
if (is_smp())
cpumask_setall(policy->cpus);
}

/* FIXME: what's the actual transition time? */
policy->cpuinfo.transition_latency = 300 * 1000;
Expand Down
3 changes: 2 additions & 1 deletion trunk/include/linux/cpufreq.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ struct cpufreq_policy {
cpumask_var_t cpus; /* Online CPUs only */
cpumask_var_t related_cpus; /* Online + Offline CPUs */

unsigned int shared_type; /* ANY or ALL affected CPUs
unsigned int shared_type; /* ACPI: ANY or ALL affected CPUs
should set cpufreq */
unsigned int cpu; /* cpu nr of CPU managing this policy */
unsigned int last_cpu; /* cpu nr of previous CPU that managed
Expand Down Expand Up @@ -122,6 +122,7 @@ struct cpufreq_policy {
#define CPUFREQ_START (3)
#define CPUFREQ_UPDATE_POLICY_CPU (4)

/* Only for ACPI */
#define CPUFREQ_SHARED_TYPE_NONE (0) /* None */
#define CPUFREQ_SHARED_TYPE_HW (1) /* HW does needed coordination */
#define CPUFREQ_SHARED_TYPE_ALL (2) /* All dependent CPUs should set freq */
Expand Down

0 comments on commit bebd8c2

Please sign in to comment.