commit | 6cf496f324e771fd44f8eb0f38c2774a97bf97d9 | [log] [tgz] |
---|---|---|
author | Andrew Boie <andrew.p.boie@intel.com> | Fri Feb 14 10:52:49 2020 -0800 |
committer | Anas Nashif <anas.nashif@intel.com> | Tue Mar 10 09:57:58 2020 -0400 |
tree | 1a17ac321ed1a0230967bccf1a5312e979b2604f | |
parent | e23102f5dcc9b32559ca4530abd8f54264e084b5 [diff] |
kernel: use sched lock for k_thread_suspend/resume This logic should be using the sched_lock and not its own separate lock for these two functions. Some simplications were made; z_thread_single_resume and z_thread_single_suspend were only used in one place, and there was some redundant logic for whether to reschedule in the suspend case. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>