commit | ed6b4fb21c1230b1f0c4dde5cc443c73fa9528d4 | [log] [tgz] |
---|---|---|
author | Andy Ross <andrew.j.ross@intel.com> | Thu Jan 23 13:04:15 2020 -0800 |
committer | Anas Nashif <anas.nashif@intel.com> | Mon Feb 03 09:31:56 2020 -0500 |
tree | aafeceb47f49f1a9213e68ab5f2f8ccdda8533b6 | |
parent | 83d1ca06dcd66bd96df42d41c2df47572c0ee107 [diff] |
kernel/sched: Properly synchronize pend() Kernel wait_q's and the thread pended_on backpointer are scheduler state and need to be modified under the scheduler lock. There was one spot in pend() where they were not. Also unpack z_remove_thread_from_ready_q() into an unsynchronized utility so that it can be called by this process in a single lock block. Signed-off-by: Andy Ross <andrew.j.ross@intel.com>