Skip to content
Commit 178cfd09 authored by Flavio Ceolin's avatar Flavio Ceolin Committed by Anas Nashif
Browse files

samples: pm: Fix device pm sample



"child resuming" text is printed when dummy_device_pm_ctrl is
called. The driver is using the async api, this means that this call
will happen only when the worqueue runs what will happen only when
this thread blocks waiting on the conditional variable.

The last thing is, the dummy driver was putting the parent driver
asynchronously consequently the "parent suspending" message would just
print after "Device PM sample app complete". Just use the sync API to
get these messages printed in the expected order.

Fixes #35336

Signed-off-by: default avatarFlavio Ceolin <flavio.ceolin@intel.com>
parent 47435904
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment