[PATCH/RFC] mm: add and use batched version of __tlb_remove_table()
Sam Ravnborg
sam at ravnborg.org
Sat Dec 18 05:39:36 AEDT 2021
Hi Nikita,
How about adding the following to tlb.h:
#ifndef __tlb_remove_tables
static void __tlb_remove_tables(...)
{
....
}
#endif
And then the few archs that want to override __tlb_remove_tables
needs to do a
#define __tlb_remove_tables __tlb_remove_tables
static void __tlb_remove_tables(...)
{
...
}
In this way the archs that uses the default implementation needs not do
anything.
A few functions already uses this pattern in tlb.h - see for example tlb_start_vma
io.h is another file where you can see the same pattern.
Sam
More information about the Linuxppc-dev
mailing list