Skip to content
Snippets Groups Projects
Commit 6edc9e39 authored by Serge Petrenko's avatar Serge Petrenko Committed by Kirill Yukhin
Browse files

cbus: simplify cbus_call interface

All of the current cbus_call() invocations pass TIMEOUT_INFINITY as a
timeout and don't provide any free_cb.

Since commit bd6fb06a ("core: allow
spurious wakeups in cbus_call") cbus_call() with TIMEOUT_INFINITY can't
be interrupted at all, so  there's no point to pass free_cb for it.

Let's simplify cbus_call() usage by removing the last two arguments,
free_cb and timeout.

These arguments will be present in a new function, cbus_call_timeout.

Simplify all current cbus_call() usages which have TIMEOUT_INFINITY.
Remove free_cb, where present, and stop allocating call messages
dynamically, since static allocation works just fine now.

NO_DOC=refactoring
NO_CHANGELOG=refactoring
parent 3b521cb6
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment