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: Peter Zijlstra
Subject:
Re: [PATCH 1/2] MN10300: Move asm-arm/cnt32_to_63.h to include/linux/
Date: Friday, September 26, 2008 - 3:56 am
On Wed, 2008-09-24 at 17:48 +0100, David Howells wrote:
quoted text
> 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?
quoted text
> +#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. --
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
:
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