| 29 | |
| 30 | sched_setscheduler() is a problem in: |
| 31 | trunk/src/VBox/Runtime/r0drv/linux/thread2-r0drv-linux.c |
| 32 | {{{ |
| 33 | thread2-r0drv-linux.c rtThreadNativeSetPriority 95 sched_setscheduler(current, iSchedClass, &Param); |
| 34 | }}} |
| 35 | |
| 36 | where we attempt to set scheduling priorities for our kernel threads. We do this |
| 37 | for 2 scheduling classes, SCHED_NORMAL and SCHED_FIFO. |
| 38 | |
| 39 | For the SCHED_FIFO case in this code, we should use instead the new sched_set_fifo() and sched_set_fifo_low() interfaces. However in general SCHED_FIFO is discouraged |
| 40 | and we probably should drop that in the longer run. |
| 41 | For the rest of the cases of SCHED_NORMAL we should probably use sched_set_normal() |
| 42 | and set a nice value instead of the current priority for sched_setscheduler(). |