login
Login
/
Register
Search
Search this site:
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
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Nick Piggin
Subject:
Re: [PATCH, RFC] improved hacks to allow -rt to run kernbench on POWER
Date: Friday, November 9, 2007 - 6: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 ...
, Paul E. McKenney
, (Fri Nov 9, 11:10 am)
Re: [PATCH, RFC] improved hacks to allow -rt to run kernbe ...
, Benjamin Herrenschmidt
, (Fri Nov 9, 1:52 pm)
Re: [PATCH, RFC] improved hacks to allow -rt to run kernbe ...
, Paul E. McKenney
, (Fri Nov 9, 3:07 pm)
Re: [PATCH, RFC] improved hacks to allow -rt to run kernbe ...
, Nick Piggin
, (Fri Nov 9, 6:18 pm)
Re: [PATCH, RFC] improved hacks to allow -rt to run kernbe ...
, Benjamin Herrenschmidt
, (Sat Nov 10, 8:59 pm)
Re: [PATCH, RFC] improved hacks to allow -rt to run kernbe ...
, Steven Rostedt
, (Sun Nov 11, 7:45 am)
Re: [PATCH, RFC] improved hacks to allow -rt to run kernbe ...
, Benjamin Herrenschmidt
, (Sun Nov 11, 1:48 pm)
Re: [PATCH, RFC] improved hacks to allow -rt to run kernbe ...
, Paul E. McKenney
, (Mon Nov 12, 10:05 am)
Re: [PATCH, RFC] improved hacks to allow -rt to run kernbe ...
, Paul E. McKenney
, (Mon Nov 12, 12:15 pm)
Re: [PATCH, RFC] improved hacks to allow -rt to run kernbe ...
, Benjamin Herrenschmidt
, (Mon Nov 12, 2:12 pm)
Re: [PATCH, RFC] improved hacks to allow -rt to run kernbe ...
, Peter Zijlstra
, (Tue Nov 13, 2:10 am)
Re: [PATCH, RFC] improved hacks to allow -rt to run kernbe ...
, Benjamin Herrenschmidt
, (Tue Nov 13, 2:43 am)
Re: [PATCH, RFC] improved hacks to allow -rt to run kernbe ...
, Peter Zijlstra
, (Tue Nov 13, 3:05 am)
Re: [PATCH, RFC] improved hacks to allow -rt to run kernbe ...
, Peter Zijlstra
, (Tue Nov 13, 3:59 am)
Re: [PATCH, RFC] improved hacks to allow -rt to run kernbe ...
, Benjamin Herrenschmidt
, (Tue Nov 13, 4:09 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ingo Molnar
Re: [PATCH 0/3] v2 Make hierarchical RCU less IPI-happy and add more tracing
Jeremy Fitzhardinge
Re: Linux 2.6.28.10 and Linux 2.6.29.6 XEN Guest Support Broken x86_64 in BUILD
Nick Piggin
Re: [patch] CFS (Completely Fair Scheduler), v2
Gary Hade
Re: [PATCH 0/5][RFC] Physical PCI slot objects
Dave Johnson
Re: expected behavior of PF_PACKET on NETIF_F_HW_VLAN_RX device?
linux-netdev
:
Arnd Bergmann
Re: 64-bit net_device_stats
Stephens, Allan
RE: [PATCH]: tipc: Fix oops on send prior to entering networked mode
frank.blaschka
[patch 3/5] [PATCH] qeth: support z/VM VSWITCH Port Isolation
Wu Fengguang
Re: [PATCH] dm9601: handle corrupt mac address
David Miller
Re: [PATCH net-2.6.24] Fix refcounting problem with netif_rx_reschedule()
git
:
Junio C Hamano
Re: [PATCH] [RFC] add Message-ID field to log on git-am operation
Junio C Hamano
Re: Handling large files with GIT
Karl
Re: [ANNOUNCE] pg - A patch porcelain for GIT
Josh Triplett
Re: [RFC][PATCH 00/10] Sparse: Git's "make check" target
Pierre Habouzit
Re: [PATCH] git-daemon: more powerful base-path/user-path settings, using formats.
git-commits-head
:
Linux Kernel Mailing List
MIPS: RBTX4939: Fix IOC pin-enable register updating
Linux Kernel Mailing List
regulator: update email address for Liam Girdwood
Linux Kernel Mailing List
[SCSI] ipr: add message to error table
Linux Kernel Mailing List
powerpc/32: Wire up the trampoline code for kdump
Linux Kernel Mailing List
USB: omap_udc: sync with OMAP tree
openbsd-misc
:
Josh Grosse
Re: error : pkg add phpMyAdmin
Brian Candler
Re: OBSD's perspective on SELinux
Jacob Meuser
Re: /dev/audio: Device busy
David Vasek
Re: Inexpensive, low power, "wall wart" computer
William Boshuck
Re: Richard Stallman...
Colocation donated by:
Syndicate