使process模块能以O3优化下运行

This commit is contained in:
fslongjin
2022-08-01 21:42:23 +08:00
parent e806bbc0c8
commit f06ed2d886
7 changed files with 62 additions and 23 deletions

View File

@ -3,8 +3,6 @@
#include <driver/video/video.h>
#include <common/spinlock.h>
#pragma GCC push_options
#pragma GCC optimize("O0")
struct sched_queue_t sched_cfs_ready_queue[MAX_CPU_NUM]; // 就绪队列
@ -160,5 +158,4 @@ void sched_init()
sched_cfs_ready_queue[i].cpu_exec_proc_jiffies = 5;
sched_cfs_ready_queue[i].proc_queue.virtual_runtime = 0x7fffffffffffffff;
}
}
#pragma GCC pop_options
}

View File

@ -3,8 +3,6 @@
#include <common/glib.h>
#include <process/process.h>
#pragma GCC push_options
#pragma GCC optimize("O0")
// @todo: 用红黑树重写cfs的队列
struct sched_queue_t
{
@ -49,4 +47,3 @@ void sched_init();
*/
void sched_update_jiffies();
#pragma GCC pop_options