+ /*
+ * We have to check whether the list is empty because the call
+ * to ->pre_select() might have called sched_shutdown(). In
+ * this case t has been unregistered already, so we must not
+ * unregister it again.
+ */
+ if (list_empty(&pre_select_list))
+ return;