Add comment for non-preempt kernel
This commit is contained in:
parent
319f197fcd
commit
70930ecf50
@ -1,9 +1,9 @@
|
||||
#include "pit.h"
|
||||
#include "io.h"
|
||||
#include "irq.h"
|
||||
#include "klibc.h"
|
||||
#include "kthread.h"
|
||||
#include "time.h"
|
||||
#include "klibc.h"
|
||||
|
||||
int pitSetup(unsigned int freq)
|
||||
{
|
||||
@ -21,5 +21,7 @@ struct cpu_state *pitIrqHandler(struct cpu_state *prevCpu)
|
||||
{
|
||||
__atomic_add_fetch(&jiffies, 1, __ATOMIC_RELAXED);
|
||||
kthreadOnJieffiesTick();
|
||||
// Uncomment for non-preemptible kernel
|
||||
// return prevCpu;
|
||||
return kthreadSwitch(prevCpu);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user