File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -3204,6 +3204,7 @@ fn test_haiku(target: &str) {
3204
3204
"kernel/fs_query.h" ,
3205
3205
"kernel/fs_volume.h" ,
3206
3206
"kernel/image.h" ,
3207
+ "kernel/scheduler.h" ,
3207
3208
"storage/StorageDefs.h" ,
3208
3209
"support/Errors.h" ,
3209
3210
"support/SupportDefs.h" ,
Original file line number Diff line number Diff line change 61
61
B_ADD_ON_IMAGE ,
62
62
B_SYSTEM_IMAGE
63
63
}
64
+
65
+ // kernel/scheduler.h
66
+ pub enum schduler_mode {
67
+ SCHEDULER_MODE_LOW_LATENCY ,
68
+ SCHEDULER_MODE_POWER_SAVING ,
69
+ }
64
70
}
65
71
66
72
s ! {
@@ -744,6 +750,9 @@ extern "C" {
744
750
745
751
pub fn find_thread ( name : * const :: c_char ) -> thread_id ;
746
752
753
+ pub fn get_scheduler_mode ( ) -> i32 ;
754
+ pub fn set_scheduler_mode ( mode : i32 ) -> status_t ;
755
+
747
756
pub fn send_data (
748
757
thread : thread_id ,
749
758
code : i32 ,
You can’t perform that action at this time.
0 commit comments