Barry Spindler on Tue, 11 Jul 2000 12:32:40 -0400 (EDT)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] kernel 2.4-test3


Here's a patch that was posted to the linux-kernel list that is supposed to
fix that..

-- cut here --

diff -u --recursive --new-file v2.4.0-test3/kernel/timer.c
+v2.4.0-test3/kernel/timer.c
- --- v2.4.0-test3/kernel/timer.c       Mon Jul 10 23:35:19 2000
+++ v2.4.0-test3/kernel/timer.c Tue Jul 11 11:16:01 2000
@@ -577,7 +577,7 @@
                        p->counter = 0;
                        p->need_resched = 1;
                }
- -             if (p->priority < DEF_PRIORITY)
+               if (p->nice > 0)
                        kstat.cpu_nice += user_tick;
                else
                        kstat.cpu_user += user_tick;


-- cut here --

Hope that works :)

	--Barry

On Tue, Jul 11, 2000 at 11:45:30AM -0400, vkenny@quarterleaf.com wrote:
> Well, it's out there..
> has anyone worked with it?
> during teh make bzImage I get an error 
> 
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer -pipe  -mpreferred-stack-boundary=2 -march=i686
> -fno-strict-aliasing   -c -o timer.o timer.c
> timer.c: In function `update_process_times':
> timer.c:580: structure has no member named `priority'
> timer.c:580: `DEF_PRIORITY' undeclared (first use in this function)
> timer.c:580: (Each undeclared identifier is reported only once
> timer.c:580: for each function it appears in.)
> make[2]: *** [timer.o] Error 1
> make[2]: Leaving directory `/usr/src/linux/kernel'
> make[1]: *** [first_rule] Error 2
> make[1]: Leaving directory `/usr/src/linux/kernel'
> make: *** [_dir_kernel] Error 2
> 
> 
> I think this is coming from the ICP Process accounting (hence the
> update_process_times).  I can't find this on the 'Net, does anyone here have
> ideas?
> Vale
> 
> 
> 
> 
> 
> 
> Hail Eris, All Hail Discordia.
> Jon Postel, you are missed.
> 
> 
> ______________________________________________________________________
> Philadelphia Linux Users Group       -       http://www.phillylinux.org
> Announcements - http://lists.phillylinux.org/mail/listinfo/plug-announce
> General Discussion   -   http://lists.phillylinux.org/mail/listinfo/plug
> 
> 
> 

-- 
Whoever fights monsters should see to it that in the process he does not
become a monster.  And when you look into an abyss, the abyss also looks
into you.
		-- Friedrich Nietzsche
------------------------------------------------------------------------
GPG Fingerprint: 5475 C984 D870 4ACD 9799  1B69 DFCE 17CB 8257 38C3
------------------------------------------------------------------------

______________________________________________________________________
Philadelphia Linux Users Group       -       http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion   -   http://lists.phillylinux.org/mail/listinfo/plug