static struct sched_power sched_power;
void sched_power_set_update_func(int cpu, struct update_sched_power *update,
- void (*fn)(struct update_sched_power *, int, unsigned int, int,
+ void (*fn)(struct update_sched_power *, int, int, int,
int))
{
}
static void sched_power_update(struct update_sched_power *update, int cpu,
- unsigned int weight, int flags, int time)
+ int weight, int flags, int time)
{
struct cpu_power *cpower = container_of(update, struct cpu_power,
update_power);
#define SCHED_POWER_CLUSTER_REQ 0x2
#ifdef CONFIG_THERMAL
struct update_sched_power {
- void (*func)(struct update_sched_power *, int, unsigned int, int, int);
+ void (*func)(struct update_sched_power *, int, int, int, int);
};
DECLARE_PER_CPU(struct update_sched_power *, update_cpu_power);
-static inline void sched_power_change_cpu_weight(int cpu, unsigned long weight,
- int flags)
+static inline
+void sched_power_change_cpu_weight(int cpu, int weight, int flags)
{
struct update_sched_power *update;
u64 time = sched_clock();
}
static inline
-void sched_power_change_cluster_weight(int cpu, unsigned long weight, int flags)
+void sched_power_change_cluster_weight(int cpu, int weight, int flags)
{
sched_power_change_cpu_weight(cpu, weight, flags |
SCHED_POWER_CLUSTER_REQ);
}
#else
-static inline void sched_power_change_cpu_weight(int cpu, unsigned int weight,
- int flags) {}
static inline
-void sched_power_change_cluster_weight(int cpu, unsigned int weight, int flags)
+void sched_power_change_cpu_weight(int cpu, int weight, int flags) {}
+
+static inline
+void sched_power_change_cluster_weight(int cpu, int weight, int flags)
{}
#endif /* CONFIG_THERMAL */