commit | c28b27416da91659ad580074db6756b2ab7e62da | [log] [tgz] |
---|---|---|
author | Stafford Horne <shorne@gmail.com> | Wed Jun 24 04:44:05 2020 +0900 |
committer | Stafford Horne <shorne@gmail.com> | Tue Aug 04 10:59:45 2020 +0900 |
tree | 4c9463d6d6bc0121c76e33ba751558fa84bf5d8f | |
parent | 57b8e277c33620e115633cdf700a260b55095460 [diff] |
openrisc: Implement proper SMP tlb flushing Up until now when flushing pages from the TLB on SMP OpenRISC was always resorting to flush the entire TLB on all CPUs. This patch adds the mechanics for flushing specific ranges and pages based on the usage. The function switch_mm is updated to account for cpu usage by updating mm_struct's cpumask. This is used in the SMP flush routines. This mostly follows the riscv implementation. Signed-off-by: Stafford Horne <shorne@gmail.com>