Re: Jiffies_64 for 2.4.22-ac

From: Tim Schmielau
Date: Fri Sep 12 2003 - 12:11:10 EST


On Fri, 12 Sep 2003, Tabris wrote:

> this one is changed as per my current running kernel, and compile tested.
> sorry about the last one... -ENOCAFFEINE

still one knit:

> #if HZ!=100
> len = sprintf(page,"%lu.%02lu %lu.%02lu\n",
> - uptime / HZ,
> - (((uptime % HZ) * 100) / HZ) % 100,
> - idle / HZ,
> - (((idle % HZ) * 100) / HZ) % 100);
> + (unsigned long) uptime,
> + (uptime_remainder * 100) / HZ,
> + (unsigned long) idle / HZ,
> + (idle_remainder * 100) / HZ);

the last lines should read

+ (unsigned long) idle,
+ (idle_remainder * 100) / HZ);

since idle already got divided by HZ a couple of lines earlier.


Btw., the common convention used by kernel hackers is that you can do

> cd linux-2.4.22-ac1
> patch -p1 < ../whatever.patch

while with your patches one has to use -p2.

Tim

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/