Skip to content

core/thread: move thread configuration into seperate header#16024

Merged
kaspar030 merged 1 commit intoRIOT-OS:masterfrom
kaspar030:refactor_thread_config
Mar 2, 2021
Merged

core/thread: move thread configuration into seperate header#16024
kaspar030 merged 1 commit intoRIOT-OS:masterfrom
kaspar030:refactor_thread_config

Conversation

@kaspar030
Copy link
Copy Markdown
Contributor

@kaspar030 kaspar030 commented Feb 16, 2021

Contribution description

This PR moves some thread configuration defines from thread.h into thread_config.h.
As is, this only moves code around, but it is the first step to untangle the thread.h API from cpu specific stuff (see e.g., here).
It is also a necessary step for providing alternative scheduler / core implementations.

Testing procedure

This only moves code around, so a CI success should be fine.

Issues/PRs references

Suggested in #15595.

@kaspar030 kaspar030 added Area: core Area: RIOT kernel. Handle PRs marked with this with care! Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Feb 16, 2021
@kaspar030 kaspar030 requested a review from maribu February 16, 2021 14:21
@kaspar030 kaspar030 removed the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Feb 16, 2021
Copy link
Copy Markdown
Member

@maribu maribu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CI has some feedback.

A follow up step would IMO be to move out the arch specific configs to cpu/<SOME_ARCH>_common/include/thread_config_arch.h, so that cpu_conf.h is no longer needed.

@maribu
Copy link
Copy Markdown
Member

maribu commented Mar 2, 2021

@kaspar030: Ping? I volunteer to do the follow up. The vendor files get included has again bitten me in the ass, I finally want to get rid of this issue.

@kaspar030 kaspar030 added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Mar 2, 2021
Copy link
Copy Markdown
Member

@maribu maribu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, please squash

@kaspar030 kaspar030 force-pushed the refactor_thread_config branch from 1aa6f8e to e8e8405 Compare March 2, 2021 10:56
@kaspar030
Copy link
Copy Markdown
Contributor Author

squashed

@kaspar030 kaspar030 merged commit 1dceba9 into RIOT-OS:master Mar 2, 2021
@kaspar030 kaspar030 deleted the refactor_thread_config branch March 2, 2021 16:34
@kaspar030 kaspar030 added this to the Release 2021.04 milestone Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: core Area: RIOT kernel. Handle PRs marked with this with care! CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants