commit | 98b98773dfa4a7f4d4f47e4257b59f0899615dee | [log] [tgz] |
---|---|---|
author | Joel Fernandes (Google) <joel@joelfernandes.org> | Tue Aug 04 23:45:12 2020 -0400 |
committer | Joel Fernandes <joelaf@google.com> | Tue Aug 04 23:51:22 2020 -0400 |
tree | 6e4aad637c73c0cf7df3d528481c934dff61fd76 | |
parent | 93f597f7c8ef6e5f9b808bb8b349f842b41b0ee7 [diff] |
Fix detection of idle When we switch from migration -> rcu_preempt, the prev task of rcu_preempt could be idle. If say, rcu_preempt went to sleep waiting on a timer. In that case, it thinks the next task is idle. Remove dependence on the stack of the switched-to process by storing what the previous task was on the CPU, and not on the task's stack. Signed-off-by: Joel Fernandes <joelaf@google.com>