From 5da8ffe6051315cb4d18aee44839676e600c1358 Mon Sep 17 00:00:00 2001 From: Dave Anderson Date: Mon, 29 Sep 2014 11:33:27 -0400 Subject: [PATCH] Set the 32-bit ARM HZ value to a default value of 100 if the kernel was not configured with CONFIG_IKCONFIG. Without the patch, the initial system banner and the "sys" command show "UPTIME: (cannot calculate: unknown HZ value)", the "ps -t" option shows "RUN TIME: (cannot calculate: unknown HZ value)", and the "timer -r" option kills the crash session with a floating point exception. (hukeping@huawei.com) --- arm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arm.c b/arm.c index e7d3dbce..4c4b41bb 100644 --- a/arm.c +++ b/arm.c @@ -322,6 +322,9 @@ arm_init(int when) "pr_pid"); MEMBER_OFFSET_INIT(elf_prstatus_pr_reg, "elf_prstatus", "pr_reg"); + + if (!machdep->hz) + machdep->hz = 100; break; case POST_VM: