Changeset 151c050 in mainline for kernel/generic/src/main/main.c


Ignore:
Timestamp:
2024-01-15T14:33:03Z (9 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master
Children:
c7ceacf
Parents:
8996582
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-04-15 16:15:29)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2024-01-15 14:33:03)
Message:

Rethink scheduler entry points

Changes the way scheduler is entered, to eliminate some unnecessary
locking and interrupt disables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/main/main.c

    r8996582 r151c050  
    285285
    286286        /*
    287          * This call to scheduler() will return to kinit,
     287         * This call to scheduler_run() will return to kinit,
    288288         * starting the thread of kernel threads.
    289289         */
    290         scheduler();
     290        scheduler_run();
    291291        /* not reached */
    292292}
     
    356356
    357357        semaphore_up(&ap_completion_semaphore);
    358         scheduler();
     358        scheduler_run();
    359359        /* not reached */
    360360}
Note: See TracChangeset for help on using the changeset viewer.