Re: [PATCH, RFC] improved hacks to allow -rt to run kernbench on POWER

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <paulmck@...>
Cc: <linux-kernel@...>, <tony@...>, <paulus@...>, <dino@...>, <tytso@...>, <dvhltc@...>, <niv@...>, <antonb@...>, <rostedt@...>
Date: Friday, November 9, 2007 - 4:52 pm

> diff -urpNa -X dontdiff linux-2.6.23.1-rt4/arch/powerpc/kernel/process.c linux-2.6.23.1-rt4-fix/arch/powerpc/kernel/process.c

I doubt we can schedule within __switch_to() (can somebody confirm
this ?), in which case, you can just use __get_cpu_var() and avoid
the put, thus saving a handful of cycles in the code above.


 
The patch above will have to be rebased following a fix I did that makes
_tlbie() takes a context ID argument. I don't actually think
preempt_disable/enable is necessary here. I don't think it matters if we
preempt here, but I suppose better safe than sorry.... (this is 44x
code).

Overall, looks fine !

Cheers,
Ben.

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH, RFC] improved hacks to allow -rt to run kernbenc..., Benjamin Herrenschmidt, (Fri Nov 9, 4:52 pm)
Re: [PATCH, RFC] improved hacks to allow -rt to run kernbenc..., Benjamin Herrenschmidt, (Sat Nov 10, 11:59 pm)
Re: [PATCH, RFC] improved hacks to allow -rt to run kernbenc..., Benjamin Herrenschmidt, (Sun Nov 11, 4:48 pm)
Re: [PATCH, RFC] improved hacks to allow -rt to run kernbenc..., Benjamin Herrenschmidt, (Mon Nov 12, 5:12 pm)
Re: [PATCH, RFC] improved hacks to allow -rt to run kernbenc..., Benjamin Herrenschmidt, (Tue Nov 13, 5:43 am)
Re: [PATCH, RFC] improved hacks to allow -rt to run kernbenc..., Benjamin Herrenschmidt, (Tue Nov 13, 7:09 am)