[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Increasing HZ (patch for HZ > 1000)


Jean-Marc Valin wrote:

> 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 ;-)

-- 
bill davidsen <davidsen _at_ tmr.com>
   CTO TMR Associates, Inc
   Doing interesting things with small computers since 1979
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo _at_ vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


この情報があなたの探していたものかどうか選択してください。
yes/まさにこれだ!   no/違うなぁ   part/一部見つかった   try/これで試してみる

あなたが探していた情報はどのようなことか、ご自由に記入下さい。特に「まさにこれだ!」と言う場合は記入をお願いします。
例:「複数のマシンからCATV経由でipmasqueradeを利用してWebを参照したい場合の設定について」