OMAP: Timer: Replace bss variable by gd
authorDirk Behme <dirk.behme@googlemail.com>
Sat, 11 Dec 2010 15:50:48 +0000 (10:50 -0500)
committerSandeep Paulraj <s-paulraj@ti.com>
Sat, 11 Dec 2010 15:50:48 +0000 (10:50 -0500)
commitb03c8403cd770332778eec9142f136a9c870aaeb
tree38b1b0167cd7bb8e9c67a62380ee70e339d1a1bf
parentaac0b4b6c153c413b4541a61d9c4296eef689e07
OMAP: Timer: Replace bss variable by gd

Reuse the gd->tbl value for timestamp and add gd->lastinc for lastinc bss
values in the OMAP timer driver.

The usage of bss values in drivers before initialisation of bss is forbidden.
In that special case some data in .rel.dyn gets corrupted.

Signed-off-by: Dirk Behme <dirk.behme@gmail.com>
Tested-by: Steve Sakoman <steve.sakoman@linaro.org>
Tested-by: John Rigby <john.rigby@linaro.org>
Tested-by: Nishanth Menon <nm@ti.com>
Acked-by: Nishanth Menon <nm@ti.com>
Tested-by: Heiko Schocher <hs@denx.de>
Tested-by: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
arch/arm/cpu/armv7/omap-common/timer.c