summaryrefslogtreecommitdiffstats
path: root/fs/proc/Makefile
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2011-12-15 14:56:10 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2011-12-15 14:56:19 +0100
commitc3e0ef9a298e028a82ada28101ccd5cf64d209ee (patch)
tree6a03a5df3e33ccdfda9b0794eef364afe36211f6 /fs/proc/Makefile
parent648616343cdbe904c585a6c12e323d3b3c72e46f (diff)
downloadop-kernel-dev-c3e0ef9a298e028a82ada28101ccd5cf64d209ee.zip
op-kernel-dev-c3e0ef9a298e028a82ada28101ccd5cf64d209ee.tar.gz
[S390] fix cputime overflow in uptime_proc_show
For 32-bit architectures using standard jiffies the idletime calculation in uptime_proc_show will quickly overflow. It takes (2^32 / HZ) seconds of idle-time, or e.g. 12.45 days with no load on a quad-core with HZ=1000. Switch to 64-bit calculations. Cc: stable@vger.kernel.org Cc: Michael Abbott <michael.abbott@diamond.ac.uk> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'fs/proc/Makefile')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud