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

Prerequisites for the user tasks: task types, per-CPU task lists #267

Merged
merged 4 commits into from
Jul 19, 2022

Conversation

wipawel
Copy link
Contributor

@wipawel wipawel commented Jul 8, 2022

Prerequisites for the user tasks: Issue #55

Each CPU receives its own, independent task list. That way tasks become directly assigned to a CPU and can be properly handled (scheduled and waited on) on all CPUs operating in parallel.

This PR is rebased and depends on PR #266

@wipawel wipawel added feature New feature or request improvement A small enhancement, that makes already implemented features better Priority: 2 Very important feature labels Jul 8, 2022
@wipawel wipawel requested a review from a team as a code owner July 8, 2022 10:41
@wipawel wipawel enabled auto-merge (rebase) July 16, 2022 10:02
@wipawel wipawel disabled auto-merge July 18, 2022 17:49
wipawel added 4 commits July 19, 2022 10:41
Currently only KERNEL, USER, INTERRUPT and ACPI_SERVICE are defined.
KERNEL type is the default one.

Signed-off-by: Pawel Wieczorkiewicz <[email protected]>
Instead of using regular bitfields and extensive locking, use atomic
variable to implement the CPUs run state. Two states are added: UNBLOCKED
(default CPU is blocked and waiting before starting the tasks) and
FINISHED (CPU has done all its tasks).

Signed-off-by: Pawel Wieczorkiewicz <[email protected]>
@wipawel wipawel enabled auto-merge (rebase) July 19, 2022 08:44
@rrbranco
Copy link

Looks good, approving.

Copy link

@rrbranco rrbranco left a comment

Choose a reason for hiding this comment

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

Approving

@wipawel wipawel merged commit a2501b4 into KernelTestFramework:mainline Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request improvement A small enhancement, that makes already implemented features better Priority: 2 Very important feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants