rtos: remove remains of old XTOS spinlock.h implementation#10214
rtos: remove remains of old XTOS spinlock.h implementation#10214lgirdwood merged 1 commit intothesofproject:mainfrom
Conversation
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 <kai.vehmanen@linux.intel.com>
3b858de to
c0b7138
Compare
|
cmocka fail is now same as on other recent PRs. @singalsu @jsarha is this knwon failure, do we have a bug? https://github.com/thesofproject/sof/actions/runs/17443083884/job/49530645871?pr=10214 `` The following tests FAILED: Same fail in #10176 |
This PR should fix the issue: #10216 |
jsarha
left a comment
There was a problem hiding this comment.
Indeed the earlier implementation in /src/arch/host/include/arch/spinlock.h was dummy too.
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.