The first commit is only used to apply code style in order to better review the changes in the second commit.
Since ktimer_add() and ktimer_del() are used within syscall, namely (poll() and wait()), we need to check if we are executing in a syscall before enabling/disabling irqs.
The first commit is only used to apply code style in order to better review the changes in the second commit.
Since ktimer_add() and ktimer_del() are used within syscall, namely (poll() and wait()), we need to check if we are executing in a syscall before enabling/disabling irqs.