login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
September
»
26
Re: [PATCH 1/2] MN10300: Move asm-arm/cnt32_to_63.h to include/linux/
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Nicolas Pitre
Subject:
Re: [PATCH 1/2] MN10300: Move asm-arm/cnt32_to_63.h to include/linux/
Date: Friday, September 26, 2008 - 5:03 am
On Fri, 26 Sep 2008, Peter Zijlstra wrote:
quoted text
> On Wed, 2008-09-24 at 17:48 +0100, David Howells wrote: > > Move asm-arm/cnt32_to_63.h to include/linux/ so that MN10300 can make use of it > > too. > > > > Signed-off-by: David Howells <dhowells@redhat.com> > > --- > > > > arch/arm/mach-pxa/time.c | 2 + > > arch/arm/mach-sa1100/generic.c | 2 + > > arch/arm/mach-versatile/core.c | 2 + > > include/linux/cnt32_to_63.h | 80 ++++++++++++++++++++++++++++++++++++++++ > > 4 files changed, 83 insertions(+), 3 deletions(-) > > create mode 100644 include/linux/cnt32_to_63.h > > Didn't you forget to remove the old one? > > > > +#define cnt32_to_63(cnt_lo) \ > > +({ \ > > + static volatile u32 __m_cnt_hi; \ > > + union cnt32_to_63 __x; \ > > + __x.hi = __m_cnt_hi; \ > > + __x.lo = (cnt_lo); \ > > + if (unlikely((s32)(__x.hi ^ __x.lo) < 0)) \ > > + __m_cnt_hi = __x.hi = (__x.hi ^ 0x80000000) + (__x.hi >> 31); \ > > + __x.val; \ > > +}) > > + > > +#endif > > That code is way to smart :-) > > Better make sure that non of its users are SMP capable though.
Why would that matter? Nicolas --
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 1/2] MN10300: Move asm-arm/cnt32_to_63.h to include ...
, David Howells
, (Wed Sep 24, 9:48 am)
[PATCH 2/2] MN10300: Make sched_clock() report time since boot
, David Howells
, (Wed Sep 24, 9:48 am)
Re: [PATCH 1/2] MN10300: Move asm-arm/cnt32_to_63.h to inc ...
, Peter Zijlstra
, (Fri Sep 26, 3:56 am)
Re: [PATCH 2/2] MN10300: Make sched_clock() report time si ...
, Peter Zijlstra
, (Fri Sep 26, 3:58 am)
Re: [PATCH 1/2] MN10300: Move asm-arm/cnt32_to_63.h to inc ...
, Nicolas Pitre
, (Fri Sep 26, 5:03 am)
Re: [PATCH 1/2] MN10300: Move asm-arm/cnt32_to_63.h to inc ...
, Peter Zijlstra
, (Fri Sep 26, 5:08 am)
Re: [PATCH 1/2] MN10300: Move asm-arm/cnt32_to_63.h to inc ...
, Peter Zijlstra
, (Fri Sep 26, 5:20 am)
Re: [PATCH 1/2] MN10300: Move asm-arm/cnt32_to_63.h to inc ...
, David Howells
, (Fri Sep 26, 6:27 am)
Re: [PATCH 1/2] MN10300: Move asm-arm/cnt32_to_63.h to inc ...
, Nicolas Pitre
, (Sun Sep 28, 6:21 pm)
Re: [PATCH 1/2] MN10300: Move asm-arm/cnt32_to_63.h to inc ...
, Nicolas Pitre
, (Sun Sep 28, 6:42 pm)
Re: [PATCH 1/2] MN10300: Move asm-arm/cnt32_to_63.h to inc ...
, David Howells
, (Wed Oct 1, 7:34 am)
Re: [PATCH 1/2] MN10300: Move asm-arm/cnt32_to_63.h to inc ...
, Nicolas Pitre
, (Wed Oct 1, 8:36 am)
Re: [PATCH 1/2] MN10300: Move asm-arm/cnt32_to_63.h to inc ...
, David Howells
, (Thu Oct 2, 3:23 pm)
Re: [PATCH 1/2] MN10300: Move asm-arm/cnt32_to_63.h to inc ...
, Nicolas Pitre
, (Fri Oct 3, 12:15 pm)
Re: [PATCH 1/2] MN10300: Move asm-arm/cnt32_to_63.h to inc ...
, David Howells
, (Mon Oct 6, 3:44 am)
Re: [PATCH 1/2] MN10300: Move asm-arm/cnt32_to_63.h to inc ...
, Nicolas Pitre
, (Mon Oct 6, 8:06 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ken Chen
[patch] sched: fix inconsistency when redistribute per-cpu tg->cfs_rq shares.
Ingo Molnar
Re: [PATCH v3] x86: merge the simple bitops and move them to bitops.h
Jan Engelhardt
Re: [PATCH] Allow Kconfig to set default mmap_min_addr protection
Dmitry Torokhov
Re: [2.6 patch] input/serio/hp_sdc.c section fix
Rafael J. Wysocki
[Bug #16380] Loop devices act strangely in 2.6.35
git
:
Steven Grimm
Using git as a general backup mechanism (was Re: Using GIT to store /etc)
Jeff King
Re: [PATCH] git-reset: allow --soft in a bare repo
Johannes Sixt
Re: [PATCH 01/14] msvc: Fix compilation errors in compat/win32/sys/poll.c
Johannes Schindelin
Re: [PATCH] Uninstall rule for top level Makefile
Shawn O. Pearce
Re: [PATCH v2] Speed up bash completion loading
git-commits-head
:
Linux Kernel Mailing List
cgroups: clean up cgroup_pidlist_find() a bit
Linux Kernel Mailing List
sony-laptop: Add support for extended hotkeys
Linux Kernel Mailing List
IB/core: Add support for masked atomic operations
Linux Kernel Mailing List
V4L/DVB (8939): cx18: fix sparse warnings
Linux Kernel Mailing List
ipv6 mcast: Check address family of gf_group in getsockopt(MS_FILTER).
linux-netdev
:
Inaky Perez-Gonzalez
[PATCH 40/40] wimax/i2400m: add CREDITS and MAINTAINERS entries
Karsten Keil
[mISDN PATCH v2 05/19] Reduce stack size in dsp_cmx_send()
linux
Re: 2.6.23-rc8 network problem. Mem leak? ip1000a?
David Miller
Re: tun: Use netif_receive_skb instead of netif_rx
David Miller
Re: [net-next PATCH v2] llc enhancements
freebsd-current
:
Matthew Fleming
Re: [RFC] Outline of USB process integration in the kernel taskqueue system
illoai@gmail.com
Re: OT: 2d password
Hartmut Brandt
Re: problem with nss_ldap
Andrew Reilly
Re: FreeBSD's problems as seen by the BSDForen.de community
Max Laier
Re: Upcoming ABI Breakage in RELENG_7
Colocation donated by:
Syndicate