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)
committerRob Herring <rob.herring@calxeda.com>
Fri, 23 Aug 2013 01:48:42 +0000 (20:48 -0500)
commita56a5cf1f2ec895599eace0ac6eba1e4a489e4bf
tree828c517dc994615f0c3f2301d7c94b7eb00cb5f8
parent0b53c11d533a8f6688d73fad0baf67dd08ec1b90
ARM: highbank: avoid L2 cache smc calls when PL310 is not present

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>
arch/arm/mach-highbank/highbank.c