-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I am working on integrating the vserver patches into the current RedHat kernel RPM 
(don't ask), but I have encountered some problems.  Both of the problems are caused by 
the changes in the -ac kernel tree.  The first is that the goodness() function is no 
longer present in the kernel (the -ac kernel at least). This means that the following 
section of code has no place:

 

if (p->s_info != NULL

&& (p->s_info->flags & S_CTX_INFO_SCHED)!=0){

weight = atomic_read (&p->s_info->ticks)/p->s_info->refcount;

            weight = (weight+p->counter)>>1;

}else{

weight = p->counter;

}

if (!weight)

goto out;

 

Now, I can't imagine that this section can be just ignored, but I don't know where it 
should be inserted into a -ac kernel.  The second problem has to do with the the 
task_struct structure defined in include/linux/sched.h.  This structure no longer 
contains a variable called counter.  Since this is used in several places throughout 
the code, what is the proper remedy for this?  Can I just add a definition for counter 
back into the structure, or will this cause offset problems?  Any help would be much 
appreciated.  Thanks.

 

ahp


-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0

iQA/AwUBPfYIYN0rskLi2W+SEQLqDACgsNCGvWTsKZjKx6ZhDKNInyRUnvgAoILH
zGeNOtXcWGSSa6BIZQKvMfM0
=iMVn
-----END PGP SIGNATURE-----

Attachment: PGPexch.rtf.pgp
Description: Binary data

Reply via email to