/// This function is called from both privileged and unprivileged context.
/// Hence if the function is called from privileged context, then `preempt()` is called.
/// Else, the `svc_call()` is executed, this function creates the SVC exception.
/// And the SVC handler calls schedule again. Thus, the permission level is raised to privileged via the exception.
This function is called from both privileged and unprivileged context.
Hence if the function is called from privileged context, then `preempt()` is called.
Else, the `svc_call()` is executed, this function creates the SVC exception.
And the SVC handler calls schedule again. Thus, the permission level is raised to privileged via the exception.
This function is called from both privileged and unprivileged context . Hence if the function is called from privileged context then ` preempt () ` is called . Else the ` svc_call () ` is executed this function creates the SVC exception . And the SVC handler calls schedule again . Thus the permission level is raised to privileged via the exception .
pub fn schedule(is_preemptive: bool) {
    if is_preemptive {
        preempt();
    }
}
pub fn schedule ( is_preemptive : bool ) { if is_preemptive { preempt ( ) ; } }
This function is called from both privileged and unprivileged context.
This function is called from both privileged and unprivileged context .
is_preemptive
bool