powerpc/book3s: Add flush_tlb operation in cpu_spec.
This patch introduces flush_tlb operation in cpu_spec structure. This will help us to invoke appropriate CPU-side flush tlb routine. This patch adds the foundation to invoke CPU specific flush routine for respective architectures. Currently this patch introduce flush_tlb for p7 and p8. Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com> Acked-by: Paul Mackerras <paulus@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:

committed by
Benjamin Herrenschmidt

parent
4c703416ef
commit
0440705049
@@ -97,6 +97,11 @@ struct cpu_spec {
|
||||
*/
|
||||
long (*machine_check_early)(struct pt_regs *regs);
|
||||
|
||||
/*
|
||||
* Processor specific routine to flush tlbs.
|
||||
*/
|
||||
void (*flush_tlb)(unsigned long inval_selector);
|
||||
|
||||
};
|
||||
|
||||
extern struct cpu_spec *cur_cpu_spec;
|
||||
|
Reference in New Issue
Block a user