login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
November
»
10
Re: [PATCH, RFC] improved hacks to allow -rt to run kernbench on POWER
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Nick Piggin <nickpiggin@...>
To: <benh@...>
Cc: <paulmck@...>, <linux-kernel@...>, <tony@...>, <paulus@...>, <dino@...>, <tytso@...>, <dvhltc@...>, <niv@...>, <antonb@...>, <rostedt@...>
Subject:
Re: [PATCH, RFC] improved hacks to allow -rt to run kernbench on POWER
Date: Friday, November 9, 2007 - 9:18 pm
On Saturday 10 November 2007 07:52, Benjamin Herrenschmidt wrote:
quoted text
> > 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 --- > > linux-2.6.23.1-rt4/arch/powerpc/kernel/process.c 2007-10-12 > > 09:43:44.000000000 -0700 +++ > > linux-2.6.23.1-rt4-fix/arch/powerpc/kernel/process.c 2007-11-08 > > 20:33:59.000000000 -0800 @@ -245,6 +245,8 @@ struct task_struct > > *__switch_to(struct t > > struct thread_struct *new_thread, *old_thread; > > unsigned long flags; > > struct task_struct *last; > > + struct ppc64_tlb_batch *batch; > > + int hadbatch; > > > > #ifdef CONFIG_SMP > > /* avoid complexity of lazy save/restore of fpu > > @@ -325,6 +327,16 @@ struct task_struct *__switch_to(struct t > > } > > #endif > > > > + batch = &get_cpu_var(ppc64_tlb_batch); > > + if (batch->active) { > > + hadbatch = 1; > > + if (batch->index) { > > + __flush_tlb_pending(batch); > > + } > > + batch->active = 0; > > + } > > + put_cpu_var(ppc64_tlb_batch); > > + > > local_irq_save(flags); > > > > account_system_vtime(current); > > @@ -335,6 +347,12 @@ struct task_struct *__switch_to(struct t > > > > local_irq_restore(flags); > > > > + if (hadbatch) { > > + batch = &get_cpu_var(ppc64_tlb_batch); > > + batch->active = 1; > > + put_cpu_var(ppc64_tlb_batch); > > + } > > + > > return last; > > } > > 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.
Preempt is always turned off over switch_to() call. -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH, RFC] improved hacks to allow -rt to run kernbench on...
, Paul E. McKenney
, (Fri Nov 9, 2:10 pm)
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...
, Nick Piggin
, (Fri Nov 9, 9:18 pm)
Re: [PATCH, RFC] improved hacks to allow -rt to run kernbenc...
, Paul E. McKenney
, (Fri Nov 9, 6:07 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...
, Steven Rostedt
, (Sun Nov 11, 10:45 am)
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...
, Paul E. McKenney
, (Mon Nov 12, 3:15 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...
, Peter Zijlstra
, (Tue Nov 13, 5:10 am)
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...
, Peter Zijlstra
, (Tue Nov 13, 6:05 am)
Re: [PATCH, RFC] improved hacks to allow -rt to run kernbenc...
, Benjamin Herrenschmidt
, (Tue Nov 13, 7:09 am)
Re: [PATCH, RFC] improved hacks to allow -rt to run kernbenc...
, Peter Zijlstra
, (Tue Nov 13, 6:59 am)
Re: [PATCH, RFC] improved hacks to allow -rt to run kernbenc...
, Paul E. McKenney
, (Mon Nov 12, 1:05 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 004/196] Chinese: add translation of SubmittingPatches
James Bottomley
Re: Announce: Linux-next (Or Andrew's dream :-))
David Miller
[GIT]: Networking
linux-netdev
:
Antonio Almeida
HTB accuracy for high speed
Ingo Molnar
iwlwifi: fix build bug in "iwlwifi: fix LED stall"
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Avi Kivity
Re: [RFC PATCH 14/17] kvm: add a reset capability
git
:
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
5 users
and
697 guests
online.
Online users
cbelgra009
hamidmushtaq
snore
cinderellawhite
may77santo
Syndicate