mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-18 08:06:32 +00:00
使process模块能以O3优化下运行
This commit is contained in:
@ -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
|
||||
}
|
@ -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
|
Reference in New Issue
Block a user