]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] reset cputime accounting after IPL from NSS
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 13 Nov 2009 14:43:52 +0000 (15:43 +0100)
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
Fri, 13 Nov 2009 14:45:03 +0000 (15:45 +0100)
commitf683b7978d517b1ddb4b5ed1095b99f2638aaff8
tree9dad3fee30d0d7092ca48357bccaa34237179dde
parent1c81109cccb872f74669efb102c9fba7a4d5a7a6
[S390] reset cputime accounting after IPL from NSS

After an IPL from NSS the uptime of the system is incorrect. The reason
is that the startup code in head.S is not executed in case of an IPL
from NSS. Due to that sched_clock_base_cc which is used to initialze
wall_to_monotonic contains the time stamp when the NSS has been created
instead of the time stamp of the system start.

Reinitialize the cputime accounting values in create_kernel_nss after
the SAVESYS CP command that created the NSS segment.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/early.c