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

2017-06-23 Thread Borislav Petkov
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_m

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

2017-06-21 Thread Andy Lutomirski
On Wed, Jun 21, 2017 at 2:22 AM, Thomas Gleixner wrote: > On Tue, 20 Jun 2017, Andy Lutomirski wrote: >> diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c >> index 216d7ec88c0c..2ae43f59091d 100644 >> --- a/drivers/idle/intel_idle.c >> +++ b/drivers/idle/intel_idle.c >> @@ -912,16

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

2017-06-21 Thread Thomas Gleixner
On Tue, 20 Jun 2017, Andy Lutomirski wrote: > diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c > index 216d7ec88c0c..2ae43f59091d 100644 > --- a/drivers/idle/intel_idle.c > +++ b/drivers/idle/intel_idle.c > @@ -912,16 +912,15 @@ static __cpuidle int intel_idle(struct cpuidle_devic

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

2017-06-20 Thread Andy Lutomirski
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, si