kernel: Propagate scheduler modes to cpu{freq, idle} modules

This commit is contained in:
Pawel Dziepak
2013-12-17 23:26:37 +01:00
parent 4fcbac58de
commit 1b06228f13
9 changed files with 89 additions and 37 deletions
+5 -1
View File
@@ -16,6 +16,8 @@
#include <timer.h>
#include <arch/cpu.h>
#include <scheduler.h>
struct kernel_args;
@@ -107,7 +109,9 @@ extern inline cpu_ent *get_cpu_struct(void) { return &gCPU[smp_get_current_cpu()
status_t cpu_build_topology_tree(void);
const cpu_topology_node* get_cpu_topology(void);
status_t increase_cpu_performance(int delta, bool allowBoost);
void cpu_set_scheduler_mode(enum scheduler_mode mode);
status_t increase_cpu_performance(int delta);
status_t decrease_cpu_performance(int delta);
void cpu_idle(void);
-6
View File
@@ -18,12 +18,6 @@ struct scheduling_analysis;
struct SchedulerListener;
enum scheduler_mode {
SCHEDULER_MODE_LOW_LATENCY,
SCHEDULER_MODE_POWER_SAVING,
};
#ifdef __cplusplus
extern "C" {
#endif