lkml.org 
[lkml]   [2004]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Increasing HZ (patch for HZ > 1000)
Hi!

> >Actually, the way I rewrote it in the patch is immune to that kind of
> >problem:
> >
> >seq_printf(m, "\nbogomips\t: %lu.%02lu\n\n",
> > HZ*(c->loops_per_jiffy>>3)/62500,
> > (HZ*(c->loops_per_jiffy>>3)/625)%100);
> >
> >It will work correctly for any HZ up to ~34000 bogomips (using 32-bit
> >arithmetic).
>
> I think it's likely any CPU with 34000 bogomips will have more than
> 32 bit ;-)

Hmmm, but it will perhaps be running in compatibility mode.

;-),
Pavel
--
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms

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

\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.079 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site