2002-07-16 06:35:05

by Tomas Szepe

[permalink] [raw]
Subject: sched.h problem

hi,

I'm trying to get -ac to compile on sparc32 again.

At some point in time,

long counter;
long nice;

both disappeared from task_struct (def. in include/linux/sched.h).

However, arch/sparc/kernel/process.c::cpu_idle() tries to set
these properties for the idle task:

current->nice = 20;
current->counter = -100;
init_idle();

... which can't be done, of course.

The question is, how do I cope with this properly?

Have functions been introduced to adjust the appropriate
values in an instance of task_t when renicing? Or?

Thanks,
T.


2002-07-16 16:25:32

by Robert Love

[permalink] [raw]
Subject: Re: sched.h problem

On Mon, 2002-07-15 at 23:37, Tomas Szepe wrote:

> I'm trying to get -ac to compile on sparc32 again.

2.4-ac only works on a few architectures (x86 and Alpha) due to the O(1)
scheduler changes...

Robert Love

2002-07-17 23:38:11

by Pete Zaitcev

[permalink] [raw]
Subject: Re: sched.h problem

> However, arch/sparc/kernel/process.c::cpu_idle() tries to set
> these properties for the idle task:
>
> current->nice = 20;
> current->counter = -100;
> init_idle();

I'll send you my O(1) for sparc 2.5, adapt that.

-- Pete

2002-07-18 00:16:10

by Tomas Szepe

[permalink] [raw]
Subject: Re: sched.h problem

> > However, arch/sparc/kernel/process.c::cpu_idle() tries to set
> > these properties for the idle task:
> >
> > current->nice = 20;
> > current->counter = -100;
> > init_idle();
>
> I'll send you my O(1) for sparc 2.5, adapt that.

Thanks, I'll have a look at the patch.

T.