make -B format_kernel
All checks were successful
Build documentation / build-and-deploy (push) Successful in 32s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 32s
This commit is contained in:
@@ -13,13 +13,13 @@
|
||||
#include <sync/spin_lock.h>
|
||||
#include <sys/debug.h>
|
||||
#include <sys/mm.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/sched.h>
|
||||
#include <sys/smp.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/spin.h>
|
||||
|
||||
#if defined(__x86_64__)
|
||||
#include <amd64/intr_defs.h>
|
||||
#include <amd64/intr_defs.h>
|
||||
#endif
|
||||
|
||||
static struct procw* procs;
|
||||
@@ -131,9 +131,9 @@ static void proc_register (struct proc* proc) {
|
||||
spin_unlock (&procs_lock);
|
||||
}
|
||||
|
||||
static struct proc *proc_find_sched (void) {
|
||||
struct proc *start = thiscpu->proc_current;
|
||||
struct proc *proc = start->next;
|
||||
static struct proc* proc_find_sched (void) {
|
||||
struct proc* start = thiscpu->proc_current;
|
||||
struct proc* proc = start->next;
|
||||
|
||||
for (;;) {
|
||||
if (proc == NULL) {
|
||||
@@ -154,7 +154,7 @@ static struct proc *proc_find_sched (void) {
|
||||
}
|
||||
|
||||
void proc_sched (void) {
|
||||
struct proc *next = NULL;
|
||||
struct proc* next = NULL;
|
||||
|
||||
spin_lock (&thiscpu->lock);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user