commit | fed035231fe9d4fc9d63e7367b4fa5a658861daf | [log] [tgz] |
---|---|---|
author | Peter Bigot <peter.bigot@nordicsemi.no> | Mon Mar 15 11:23:00 2021 -0500 |
committer | Anas Nashif <anas.nashif@intel.com> | Mon Mar 29 12:27:36 2021 -0400 |
tree | 13d03a4b721ff3296eb7e6f22119e6f20932e0ef | |
parent | 32b71cbcdc72b907cbc789eb126febe24e0aef4d [diff] |
kernel: work: fix schedule from running work k_work_schedule() is supposed to be a no-op if the work item is already scheduled or submitted: the previous schedule is left unchanged. The check incorrectly inhibited the schedule operation when the work item was neither scheduled nor submitted, but was running. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>