kernel: Introduce scheduler modes of operation
scheduler_affine: Correctly assign CPUs to idle threads
scheduler_affine: Fix compilation warning