Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Scheduler trait #1035

Merged
merged 31 commits into from Oct 3, 2023

Commits on Sep 2, 2023

  1. Temp

    Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
    tsoutsman committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    c923d37 View commit details
    Browse the repository at this point in the history
  2. Works

    Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
    tsoutsman committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    83fe1de View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2023

  1. Rename scheduler_2 module to scheduler

    Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
    tsoutsman committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    2ddb077 View commit details
    Browse the repository at this point in the history
  2. Add draining functionality

    Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
    tsoutsman committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    972577a View commit details
    Browse the repository at this point in the history
  3. Port epoch scheduler

    Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
    tsoutsman committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    ea4e592 View commit details
    Browse the repository at this point in the history
  4. Port priority scheduler

    Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
    tsoutsman committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    be1688b View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2023

  1. Fix build

    Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
    tsoutsman committed Sep 5, 2023
    Configuration menu
    Copy the full SHA
    41c7692 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2023

  1. Save rflags during context switch

    There are no guarantees about the value of the interrupt flag when
    context switching. If the context switch is voluntary, i.e. a thread
    called `schedule`, interrupts will most likely be enabled, whereas
    if a thread is preempted, interrupts will be disabled. But this means
    that if a preempted thread A switches to a thread B that voluntarily
    yielded, thread B will return from the call to `schedule` with
    interrupts disabled.
    
    The AArch64 code also needs to be modified but I'll leave that to
    @NathanRoyer.
    
    Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
    tsoutsman committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    425b96d View commit details
    Browse the repository at this point in the history
  2. Merge branch 'save-rflags' of https://github.com/tsoutsman/Theseus in…

    …to idle-task-in-cpu-local
    tsoutsman committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    b5743c8 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2023

  1. Merge branch 'theseus_main' into idle-task-in-cpu-local

    Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
    tsoutsman committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    e6c8978 View commit details
    Browse the repository at this point in the history
  2. Fix all features build

    Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
    tsoutsman committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    4968af4 View commit details
    Browse the repository at this point in the history
  3. Remove rq_access_eval

    Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
    tsoutsman committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    5a5ce94 View commit details
    Browse the repository at this point in the history
  4. Comments

    Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
    tsoutsman committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    0936352 View commit details
    Browse the repository at this point in the history
  5. Fix scheduler_epoch bug

    Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
    tsoutsman committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    8917875 View commit details
    Browse the repository at this point in the history
  6. Implement priority inheritance

    Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
    tsoutsman committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    618b5ce View commit details
    Browse the repository at this point in the history
  7. Port rq

    Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
    tsoutsman committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    cbe91ac View commit details
    Browse the repository at this point in the history
  8. Cleanup scheduler.rs

    Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
    tsoutsman committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    7ffdfae View commit details
    Browse the repository at this point in the history
  9. Final

    Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
    tsoutsman committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    414b31f View commit details
    Browse the repository at this point in the history
  10. Clippy 😍

    Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
    tsoutsman committed Sep 8, 2023
    Configuration menu
    Copy the full SHA
    cd2b49b View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2023

  1. Remove inner box

    Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
    tsoutsman committed Sep 10, 2023
    Configuration menu
    Copy the full SHA
    c420a74 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'theseus_main' into idle-task-in-cpu-local

    Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
    tsoutsman committed Sep 10, 2023
    Configuration menu
    Copy the full SHA
    53882f8 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2023

  1. Configuration menu
    Copy the full SHA
    6d193f0 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2023

  1. Update kernel/scheduler_epoch/src/lib.rs

    Co-authored-by: Kevin Boos <1139460+kevinaboos@users.noreply.github.com>
    tsoutsman and kevinaboos committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    3fbe863 View commit details
    Browse the repository at this point in the history
  2. Don't check for idle tasks in epoch scheduler

    Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
    tsoutsman committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    bd1843e View commit details
    Browse the repository at this point in the history
  3. Remove nonsensical comment

    Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
    tsoutsman committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    9507231 View commit details
    Browse the repository at this point in the history
  4. Rename dump

    Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
    tsoutsman committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    068f1fd View commit details
    Browse the repository at this point in the history
  5. Use update_guarded

    Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
    tsoutsman committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    b51bb51 View commit details
    Browse the repository at this point in the history
  6. Remove TODO

    Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
    tsoutsman committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    1bdeb39 View commit details
    Browse the repository at this point in the history
  7. Merge branch 'theseus_main' into idle-task-in-cpu-local

    Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
    tsoutsman committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    9b9807e View commit details
    Browse the repository at this point in the history
  8. cleanup epoch scheduler

    kevinaboos committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    d705903 View commit details
    Browse the repository at this point in the history
  9. minor cleanup

    kevinaboos committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    ad9f300 View commit details
    Browse the repository at this point in the history