Skip to contentSkip to conversation

tickets 1511 and 1522 (HZ)

DISCUSSION Jean Delvare 2 participants 2 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

Hi all,

Tickets 1511 and 1522 refer to a compilation problem.
http://secure.netroedge.com/~lm78/readticket.cgi?ticket11
http://secure.netroedge.com/~lm78/readticket.cgi?ticket22

After a few exchanges with both users I could find the following. Looks like both users have some additional (2.4) kernel patch that makes HZ resolve to get_hz() instead of an integer value. This causes trouble because this isn't allowed in struct initializations. I see three possibilities:

1* This isn't the vanilla kernel, we don't support it.

2* We move the initialization of anything with HZ in it out of the structure declarations.

3* We use USER_HZ instead of HZ when USER_HZ is defined (which is the case with the mysterious patch, USER_HZ is 100).

Opinion anyone?

Thanks.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#1 lore raw
Quoted 2 lines · Jean Delvare

1* This isn't the vanilla kernel, we don't support it.

You should do this. There's no way you can support all of the different, strange, kernel patches out there and try to remain sane :)

thanks,

greg k-h