]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP2+: id: cache omap_type value
authorTero Kristo <t-kristo@ti.com>
Mon, 9 Feb 2015 14:17:38 +0000 (16:17 +0200)
committerTero Kristo <t-kristo@ti.com>
Tue, 31 Mar 2015 18:26:55 +0000 (21:26 +0300)
commitf41aae479dd67beeae6e9d60bdb56b1a279e4684
tree8cc47acbe8552433cd93c9dc0e7ff5e19abc08bd
parent6ef7cf72353e549c8ecfda11cd96431955f6db63
ARM: OMAP2+: id: cache omap_type value

There is no need to read the register with every invocation of the function,
as the value is constant. Thus, cache the value in a static variable.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
arch/arm/mach-omap2/id.c