commit | f6521a360dc0a7d370714184afea39c93d177eb5 | [log] [tgz] |
---|---|---|
author | Andy Ross <andrew.j.ross@intel.com> | Wed Jul 25 11:28:43 2018 -0700 |
committer | Anas Nashif <anas.nashif@intel.com> | Fri Feb 08 14:49:39 2019 -0500 |
tree | 3c356fb26e33f4d7c6b3c4d9b2a050569ea2931a | |
parent | c0bdcbaaf8e8454b4b68c4fc6ed9f62899e10271 [diff] |
kernel/thread_abort: Remove needless locking The two APIs protected by this lock are themselves internally synchronized. Replace the irq_lock with a spinlock anyway, because what I think it's doing is trying to prevent a race where something else like an ISR or something it wakes up mucks with the thread before this completes. Seems fragile on SMP as it stands, but this preserves behavior on uniprocessor architectures. Signed-off-by: Andy Ross <andrew.j.ross@intel.com>