On Thu, Oct 14, 2004 at 11:41:54AM -0400, Andrew Fant wrote:
> I'm attempting to build csa into a 2.4.26 kernel with the patches found on
> oss.sgi.com and have run into a strange problem. When make bzImage
> attempts to compile kernel/csa.c I get errors about nice not being defined
> in the csa structures. In particular, the lines:
> csa->ac_nice = p->nice;
> eoj.ac_nice = current->nice;
The nice field went away in one of the later 2.4 kernels. It is recorded
in the eoj accounting record. If you are not concerned with filtering
based upon process niceness, then you should be able to get by with
eoj.ac_nice = 0;
This will ensure you are not recording invalid data. Alternatively, you
could look at the 2.6 series of patches and backport how it was done there.
I believe you need to change it to something with task_nice(current), but
it has been a long time since I looked at that code.