The 32-bit overflow during calculation is responsible
for remaining problem.
That overflow is in the kernel itself then?

Yes :-( The kernel uses long, i.e on k-i it is only 32 bit.

The code can use HZ from /usr/include/asm/param.h This is set at 100

This file does not exist on GNU/kFreeBSD.

now, as Peter's bug report says (the assume is from HZ):
| wea...@field:~$ uptime
| Unknown HZ value! (45) Assume 100.

The code conditionally (#ifdef __linux__) uses elf notes so around there
I'll put a #ifdef __FreeBSD__ clause and
 a) if HZ is available, use that
 b) make it 100
or can asm/param.h HZ not be trusted?

Please hardcode it for now and use

#if defined(__FreeBSD_kernel__) || defined(__FreeBSD__)
  Hertz = 100;
  return;
#endif

But please keep the bug open, blocked by #521304.

Many thanks.

Petr




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to