mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* sched.h problem
@ 2002-07-16  6:37 Tomas Szepe
  2002-07-16 16:28 ` Robert Love
  0 siblings, 1 reply; 4+ messages in thread
From: Tomas Szepe @ 2002-07-16  6:37 UTC (permalink / raw)
  To: linux-kernel

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: sched.h problem
  2002-07-16  6:37 sched.h problem Tomas Szepe
@ 2002-07-16 16:28 ` Robert Love
  0 siblings, 0 replies; 4+ messages in thread
From: Robert Love @ 2002-07-16 16:28 UTC (permalink / raw)
  To: Tomas Szepe; +Cc: linux-kernel

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: sched.h problem
  2002-07-17 23:41 ` Pete Zaitcev
@ 2002-07-18  0:19   ` Tomas Szepe
  0 siblings, 0 replies; 4+ messages in thread
From: Tomas Szepe @ 2002-07-18  0:19 UTC (permalink / raw)
  To: Pete Zaitcev; +Cc: Tomas Szepe, linux-kernel

> > 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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: sched.h problem
       [not found] <mailman.1026801544.11015.linux-kernel2news@redhat.com>
@ 2002-07-17 23:41 ` Pete Zaitcev
  2002-07-18  0:19   ` Tomas Szepe
  0 siblings, 1 reply; 4+ messages in thread
From: Pete Zaitcev @ 2002-07-17 23:41 UTC (permalink / raw)
  To: Tomas Szepe; +Cc: linux-kernel

> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-07-18  0:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-16  6:37 sched.h problem Tomas Szepe
2002-07-16 16:28 ` Robert Love
     [not found] <mailman.1026801544.11015.linux-kernel2news@redhat.com>
2002-07-17 23:41 ` Pete Zaitcev
2002-07-18  0:19   ` Tomas Szepe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®