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

(WIP) threads: multicore support for RP2040 #241

Closed
wants to merge 11 commits into from

Commits on Apr 9, 2024

  1. Configuration menu
    Copy the full SHA
    bc22da6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    286432c View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2024

  1. runqueue: allocate threads to >= 1 cores

    Support multiple cores in the runqueue.
    The current allocation for each core is stored in a new array.
    Thus, any call to `get_next_for_core` is minimal effort.
    The allocation is updated after each change in the runqueue.
    elenaf9 committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    a659268 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6518b0a View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2024

  1. fixup! runqueue: allocate threads to >= 1 cores

    Export `CoreId`.
    elenaf9 committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    c139e68 View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2024

  1. fixup! runqueue: allocate threads to >= 1 cores

    Clean code & improve readability.
    elenaf9 committed Apr 12, 2024
    Configuration menu
    Copy the full SHA
    4f29f10 View commit details
    Browse the repository at this point in the history
  2. fixup! runqueue: allocate threads to >= 1 cores

    Optimize case where `N_CORES` == 1.
    elenaf9 committed Apr 12, 2024
    Configuration menu
    Copy the full SHA
    b26e03b View commit details
    Browse the repository at this point in the history
  3. Merge branch 'runqueue/multiple-cores' of github.com:elenaf9/RIOT-rs …

    …into threads/rp2040-multicore
    elenaf9 committed Apr 12, 2024
    Configuration menu
    Copy the full SHA
    3620743 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c14266e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9c9ede4 View commit details
    Browse the repository at this point in the history
  6. fixup! threads: PoC multicore support for rp2040

    Only schedule a context switch if thread allocation (to a core) changed.
    
    TODO:
    Schedule the context switch on the core that is affected. In most cases,
    this is the currently running cores, but not always (e.g. when on
    another core a low priority thread is running that should be preempted).
    elenaf9 committed Apr 12, 2024
    Configuration menu
    Copy the full SHA
    3d8930c View commit details
    Browse the repository at this point in the history