Repository navigation
rtos: remove remains of old XTOS spinlock.h implementation - #10214
Merged
Merged
Conversation
kv2019i
requested review from
dbaluta,
lbetlej,
lgirdwood,
mmaka1 and
plbossart
as code owners
September 3, 2025 18:42
Contributor
There was a problem hiding this comment.
Pull Request Overview
Removes the legacy XTOS spinlock implementation and associated debugging infrastructure. This cleanup simplifies the codebase by eliminating obsolete spinlock debugging features and streamlining the POSIX spinlock implementation to use simple no-op operations.
Key changes:
- Removes entire spinlock.c implementation file and related Kconfig options
- Simplifies POSIX spinlock.h to basic no-op inline functions
- Removes DEBUG_LOCKS and DEBUG_LOCKS_VERBOSE configuration options
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/spinlock.c | Completely removed XTOS spinlock implementation |
| src/include/sof/debug/debug.h | Removed DEBUG_LOCKS references from firmware ready flags |
| src/arch/host/include/arch/spinlock.h | Removed host architecture spinlock header |
| src/CMakeLists.txt | Removed spinlock.c from build sources |
| posix/include/rtos/wait.h | Removed DEBUG_LOCKS conditional code |
| posix/include/rtos/spinlock.h | Simplified to basic no-op implementation |
| Kconfig.sof | Removed DEBUG_LOCKS and DEBUG_LOCKS_VERBOSE options |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Remove old XTOS spinlock code, including the legacy DEBUG_LOCKS and DEBUG_LOGS_VERBOSE Kconfig options. The posix implementation of spinlock.h is simplified. The operations were no-ops already before, but there were multiple layers of abstractions left in the code. Remove all of these. Signed-off-by: Kai Vehmanen <[email protected]>
kv2019i
force-pushed
the
202508-xtos-spinlock-remove
branch
from
September 3, 2025 18:48
3b858de to
c0b7138
Compare
jsarha
approved these changes
Sep 5, 2025
jsarha
left a comment
Contributor
There was a problem hiding this comment.
Indeed the earlier implementation in /src/arch/host/include/arch/spinlock.h was dummy too.
lgirdwood
approved these changes
Sep 8, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Remove old XTOS spinlock code, including the legacy DEBUG_LOCKS and DEBUG_LOGS_VERBOSE Kconfig options.
The posix implementation of spinlock.h is simplified. The operations were no-ops already before, but there were multiple layers of abstractions left in the code. Remove all of these.