aboutsummaryrefslogtreecommitdiff
path: root/core/rtc.c
AgeCommit message (Collapse)AuthorFilesLines
2015-01-21Unlock rtc cache lock when cache isn't validStewart Smith1-1/+4
Otherwise we crash with recursive lock error during boot on some systems Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2014-12-02rtc: Add a generic rtc cacheAlistair Popple1-0/+69
Some of the generic skiboot code needs access to the rtc (for example the pel logging code). Currently this is accessed via a call to fsp specific code which implements an rtc cache. Obviously this wont work on systems without a fsp. This patch makes the rtc cache generic so that we can get the time on other platforms (assuming they have some kind of rtc). Signed-off-by: Alistair Popple <alistair@popple.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>