Re: [PATCH v3 07/11] x86/mm: Stop calling leave_mm() in idle code

From: Borislav Petkov
Date: Fri Jun 23 2017 - 05:08:07 EST


On Tue, Jun 20, 2017 at 10:22:13PM -0700, Andy Lutomirski wrote:
> Now that lazy TLB suppresses all flush IPIs (as opposed to all but
> the first), there's no need to leave_mm() when going idle.
>
> This means we can get rid of the rcuidle hack in
> switch_mm_irqs_off() and we can unexport leave_mm().
>
> This also removes acpi_unlazy_tlb() from the x86 and ia64 headers,
> since it has no callers any more.
>
> Signed-off-by: Andy Lutomirski <luto@xxxxxxxxxx>
> ---
> arch/ia64/include/asm/acpi.h | 2 --
> arch/x86/include/asm/acpi.h | 2 --
> arch/x86/mm/tlb.c | 19 +++----------------
> drivers/acpi/processor_idle.c | 2 --
> drivers/idle/intel_idle.c | 9 ++++-----
> 5 files changed, 7 insertions(+), 27 deletions(-)

Reviewed-by: Borislav Petkov <bp@xxxxxxx>

--
Regards/Gruss,
Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.