ARM: highbank: avoid L2 cache smc calls when PL310 is not present
authorRob Herring <rob.herring@calxeda.com>
Sun, 18 Aug 2013 01:10:28 +0000 (20:10 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 31 Mar 2014 16:58:13 +0000 (09:58 -0700)
commitb56a587c3780bc27a6ca0f751c59f9cff9e4be43
tree25b902d9d1ed53c477749139a2db86c008c49d52
parentc46696c9e2235a4f00aa424509fd3c12ebcfc475
ARM: highbank: avoid L2 cache smc calls when PL310 is not present

commit a56a5cf1f2ec895599eace0ac6eba1e4a489e4bf upstream.

While Midway firmware handles L2 smc calls as nops, the custom smc calls
present a problem when running virtualized Midway guest. They aren't
needed so just avoid calling them.

In the process, cleanup the L2X0 ifdefs and use IS_ENABLED instead.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mach-highbank/highbank.c