kernel: Propagate scheduler modes to cpu{freq, idle} modules
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user