[PATCH] ARM: Do not run dummy_flush_tlb_a15_erratum() on non-Cortex-A15

Roger Quadros rogerq at ti.com
Tue Jul 23 07:13:54 EDT 2013


On 07/23/2013 02:02 PM, Fabio Estevam wrote:
> Hi Roger,
> 
> On Tue, Jul 23, 2013 at 5:13 AM, Roger Quadros <rogerq at ti.com> wrote:
> 
>>> -     if (!erratum_a15_798181())
>>> -             return;
>>> -
>>
>> Removing this if statement will cause "ipi_flush_tlb_a15_erratum" to be called
>> on non A15 platforms. So I would just keep it to be safe.
> 
> I just moved the if statement into the the beginning of
> dummy_flush_tlb_a15_erratum(), so ipi_flush_tlb_a15_erratum will not
> be called on non-A15 systems.

It will be called. Please see the code below after your patch is applied.

 static void broadcast_tlb_a15_erratum(void)
 {
 	dummy_flush_tlb_a15_erratum();
 	smp_call_function(ipi_flush_tlb_a15_erratum, NULL, 1);
 }

cheers,
-roger



More information about the linux-arm-kernel mailing list