Skip to contentSkip to conversation

adjust x86-64 watchdog tick calculation

PATCH Andi Kleen 1 participant 1 message May 12, 2005 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Andi Kleen

author
#1 lore raw
Quoted 4 lines · Jan Beulich
Quoted 4 lines
Quoted 3 lines

Get the x86-64 watchdog tick calculation into a state where it can also be used with nmi_hz other than 1Hz. Also do not turn on the watchdog by default (as is already done on i386).

Quoted 8 lines
Quoted 6 lines

I already fixed this some time ago by using the same code as i386.

That is what is in the current tree:

       wrmsr(MSR_K7_PERFCTR0, -(cpu_khz/nmi_hz*1000), -1);

But I guess your version will work with a higher frequency, right?

For this part of the patch, yes, this will help with frequencies beyond 4GHz. The other change is which deals with nmi_hz being other than 1Hz.

I will queue it for after 2.6.12.
-Andi