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

Re: compiling 2.4.0 kernels on potato



On Thu, Jul 13, 2000 at 10:24:55AM -0300, Mario Olimpio de Menezes
wrote:

> 	I'm trying to compile 2.4.0-test3 on potato unsuccessfully!

it's a kernel problem..

[...]
> 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.)
[...]

use the following patch:

--- linux/kernel/timer.c.orig	Thu Jul 13 15:51:31 2000
+++ linux/kernel/timer.c	Thu Jul 13 15:53:25 2000
@@ -577,7 +577,7 @@
 			p->counter = 0;
 			p->need_resched = 1;
 		}
-		if (p->priority < DEF_PRIORITY)
+		if (p->nice < DEF_NICE)
 			kstat.cpu_nice += user_tick;
 		else
 			kstat.cpu_user += user_tick;

-- 
/* Moritz Schulte <moritz@hp9001.fh-bielefeld.de>
 * http://hp9001.fh-bielefeld.de/~moritz/
 * PGP-Key available, encrypted Mail is welcome.
 */



Reply to: