public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* O(1) on powerpc....
@ 2002-01-25  6:00 The Doctor What
  2002-01-25 15:52 ` Ingo Molnar
  0 siblings, 1 reply; 4+ messages in thread
From: The Doctor What @ 2002-01-25  6:00 UTC (permalink / raw)
  To: linux-kernel

I tried to compile the O(1) patch on the powerpc kernel (using
BenH's latest greatest).  But it didn't work.  It puked on the
counter and processor stuff in mk_def.c:4[01] in arch/powerpc/kernel

Is this patch just incompatable with the powerpc in some way, or is
it something that hasn't been addressed because Ingo has only ia32
systems at his disposal?

Ciao!

-- 
"By the pricking of my thumbs, something wicked this way comes."
	--Shakespeare, MacBeth, IV:i

The Doctor What: Need I say more?                http://docwhat.gerf.org/
docwhat@gerf.org                                                   KF6VNC

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

* Re: O(1) on powerpc....
  2002-01-25 15:52 ` Ingo Molnar
@ 2002-01-25 14:11   ` Robert Love
  2002-01-25 16:12     ` Ingo Molnar
  0 siblings, 1 reply; 4+ messages in thread
From: Robert Love @ 2002-01-25 14:11 UTC (permalink / raw)
  To: mingo; +Cc: The Doctor What, linux-kernel, Anton Blanchard

On Fri, 2002-01-25 at 10:52, Ingo Molnar wrote:

> i think Anton has patches to make PowerPC work - Anton?

We could do some things to generically make the other arches compatible
with the new scheduler, things like:

#define smp_processor_id()	(current->processor)

still need to be fixed (to use ->cpu).  I bet after a trivial
find/replace there is little left to do.

	Robert Love


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

* Re: O(1) on powerpc....
  2002-01-25  6:00 O(1) on powerpc The Doctor What
@ 2002-01-25 15:52 ` Ingo Molnar
  2002-01-25 14:11   ` Robert Love
  0 siblings, 1 reply; 4+ messages in thread
From: Ingo Molnar @ 2002-01-25 15:52 UTC (permalink / raw)
  To: The Doctor What; +Cc: linux-kernel, Anton Blanchard


On Fri, 25 Jan 2002, The Doctor What wrote:

> I tried to compile the O(1) patch on the powerpc kernel (using BenH's
> latest greatest).  But it didn't work.  It puked on the counter and
> processor stuff in mk_def.c:4[01] in arch/powerpc/kernel
>
> Is this patch just incompatable with the powerpc in some way, or is it
> something that hasn't been addressed because Ingo has only ia32
> systems at his disposal?

i think Anton has patches to make PowerPC work - Anton?

	Ingo


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

* Re: O(1) on powerpc....
  2002-01-25 14:11   ` Robert Love
@ 2002-01-25 16:12     ` Ingo Molnar
  0 siblings, 0 replies; 4+ messages in thread
From: Ingo Molnar @ 2002-01-25 16:12 UTC (permalink / raw)
  To: Robert Love; +Cc: The Doctor What, linux-kernel, Anton Blanchard


On 25 Jan 2002, Robert Love wrote:

> We could do some things to generically make the other arches
> compatible with the new scheduler, things like:
>
> #define smp_processor_id() (current->processor)
>
> still need to be fixed (to use ->cpu).  I bet after a trivial
> find/replace there is little left to do.

it's often more subtle then this. Every arch has to:

- implement the lowlevel task-migration mechanizm

- update the idle-thread code to use init_idle() + idle_startup_done().
  Update the idle-thread priority changing bits.

- check context_switch() for IRQ-atomicity for being called with the
  runqueue lock held - eg. ia64 re-enabled interrupts.

- add a definition of sched_find_first_bit()

- update any possible out-of-sync field offsets in entry.S.

so i'd not touch the trivial bits, because the hard bits will still be
unfixed, and who likes fixing the hard stuff only? :-)

	Ingo


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

end of thread, other threads:[~2002-01-25 14:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-25  6:00 O(1) on powerpc The Doctor What
2002-01-25 15:52 ` Ingo Molnar
2002-01-25 14:11   ` Robert Love
2002-01-25 16:12     ` Ingo Molnar

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