Skip to content

Comments

DP: application: switch back to events#10568

Open
lyakh wants to merge 1 commit intothesofproject:mainfrom
lyakh:event
Open

DP: application: switch back to events#10568
lyakh wants to merge 1 commit intothesofproject:mainfrom
lyakh:event

Conversation

@lyakh
Copy link
Collaborator

@lyakh lyakh commented Feb 20, 2026

Events provide a more natural API when the listener have to wait for several kinds of alarms at once. As the userspace code stabilises initial difficulties with the API got fixed.

Events provide a more natural API when the listener have to wait for
several kinds of alarms at once. As the userspace code stabilises
initial difficulties with the API got fixed.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Copilot AI review requested due to automatic review settings February 20, 2026 16:16
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR transitions the DP scheduler application from using semaphores to using events for task synchronization, providing a more natural API for handling multiple alarm types. The change removes the counting mechanism for pending IPC and processing events in favor of event flags.

Changes:

  • Replaced semaphore-based synchronization with event-based synchronization
  • Removed pend_ipc and pend_proc counters in favor of event flags
  • Simplified thread wake-up logic by using k_event_wait_safe() with combined event flags

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/schedule/zephyr_dp_schedule_application.c Converted IPC and processing triggers from semaphore to events, simplified thread wait logic
src/schedule/zephyr_dp_schedule.h Updated task data structure to use events for both userspace and kernel configurations
src/schedule/zephyr_dp_schedule.c Unified task stop mechanism to use events for all configurations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant