Re: use 64 bit jiffies broke HZ=100 case (and fix)

Tim Schmielau
2003-02-05T12:13:14Z

On Wed, 5 Feb 2003, Oleg Drokin wrote:

> In order to get UML to compile again (and pretty much any other HZ=100 arch)
> I need to apply this patch below:
>
[ further '>'s removed to allow direkt feeding to 'patch']

===== fs/proc/proc_misc.c 1.63 vs edited =====
--- 1.63/fs/proc/proc_misc.c Tue Nov 12 12:37:55 2002
+++ edited/fs/proc/proc_misc.c Wed Feb 5 14:28:50 2003
@@ -121,8 +121,7 @@
}
#else
{
- unsigned long idle = init_task.times.tms_utime
- + init_task.times.tms_stime;
+ unsigned long idle = init_task.utime + init_task.stime;

len = sprintf(page,"%lu.%02lu %lu.%02lu\n",
(unsigned long) uptime,
>
>
Yep. Unfortunately I tested HZ=100 only with the original patch and missed
these when rediffing. Thanks for spotting this.

Linus, please apply.

Tim