Skip to content

Change spin_until_cond in set_controller_mode #4

@agerasym-sonatus

Description

@agerasym-sonatus

spin_until_cond(state_transition_timeout(conf_chan, exp_state, timeout));

spin_until_cond is a bad choice. It is a busy wait, it is blocking the cpu core on startup and resume from suspend for up to 500ms.
Please, replace it with msleep or other yilding wait.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions