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