powerpc: Avoid giving out RTC dates below EPOCH
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 1 Nov 2009 19:11:03 +0000 (19:11 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 5 Nov 2009 06:06:21 +0000 (17:06 +1100)
commit978d7eb31d44de34a7f71e04ed4158f3f854688d
treeaed6b90715df7b2f44a69ac948a0af70a4427143
parentf1167fb318f0ff0bcb9cbb57bb6d16ad450f0cfb
powerpc: Avoid giving out RTC dates below EPOCH

Doing so causes xtime to be negative which crashes the timekeeping
code in funny ways when doing suspend/resume

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/time.c