commit | 551038e74865567f453beecbbf9ea4c9c03663cc | [log] [tgz] |
---|---|---|
author | Flavio Ceolin <flavio.ceolin@intel.com> | Mon May 02 14:31:04 2022 -0700 |
committer | Anas Nashif <anas.nashif@intel.com> | Wed May 04 13:46:48 2022 -0400 |
tree | dde852d09df38426cc78aa43d78a984784a6f946 | |
parent | 2551a75c9ee3aff4a21d4064b8bf13dac444d02c [diff] |
kernel: sched: Change cpu pin only for not executing threads Do not allow changing the CPU which a thread is pinned when it is already being executed. This allows further optimizations in some platforms with incoherent memory since we can safely assume that the thread will run in the same CPU and avoid invalidate / flush the cache during context switches. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>