Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1300280

Re: [PATCH v2 17/32] arm: define __smp_xxx

From "Michael S. Tsirkin" <mst@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 17/32] arm: define __smp_xxx
Date 2016-01-03 10:20 +0100
Message-ID <qMMZs-3si-7@gated-at.bofh.it> (permalink)
References <qLQLL-8pu-3@gated-at.bofh.it> <qLQLM-8pu-25@gated-at.bofh.it> <qMsxI-7tu-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sat, Jan 02, 2016 at 11:24:38AM +0000, Russell King - ARM Linux wrote:
> On Thu, Dec 31, 2015 at 09:07:59PM +0200, Michael S. Tsirkin wrote:
> > This defines __smp_xxx barriers for arm,
> > for use by virtualization.
> > 
> > smp_xxx barriers are removed as they are
> > defined correctly by asm-generic/barriers.h
> > 
> > This reduces the amount of arch-specific boiler-plate code.
> > 
> > Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> > Acked-by: Arnd Bergmann <arnd@arndb.de>
> 
> In combination with patch 14, this looks like it should result in no
> change to the resulting code.
> 
> Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
> 
> My only concern is that it gives people an additional handle onto a
> "new" set of barriers - just because they're prefixed with __*
> unfortunately doesn't stop anyone from using it (been there with
> other arch stuff before.)
> 
> I wonder whether we should consider making the smp memory barriers
> inline functions, so these __smp_xxx() variants can be undef'd
> afterwards, thereby preventing drivers getting their hands on these
> new macros?

That'd be tricky to do cleanly since asm-generic depends on
ifndef to add generic variants where needed.

But it would be possible to add a checkpatch test for this.


> -- 
> RMK's Patch system: http://www.arm.linux.org.uk/developer/patches/
> FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
> according to speedtest.net.
--
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/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 17/32] arm: define __smp_xxx "Michael S. Tsirkin" <mst@redhat.com> - 2015-12-31 20:10 +0100
  Re: [PATCH v2 17/32] arm: define __smp_xxx Russell King - ARM Linux <linux@arm.linux.org.uk> - 2016-01-02 12:30 +0100
    Re: [PATCH v2 17/32] arm: define __smp_xxx "Michael S. Tsirkin" <mst@redhat.com> - 2016-01-03 10:20 +0100
      Re: [PATCH v2 17/32] arm: define __smp_xxx Peter Zijlstra <peterz@infradead.org> - 2016-01-04 14:40 +0100
        Re: [PATCH v2 17/32] arm: define __smp_xxx Peter Zijlstra <peterz@infradead.org> - 2016-01-04 15:00 +0100
          Re: [PATCH v2 17/32] arm: define __smp_xxx Russell King - ARM Linux <linux@arm.linux.org.uk> - 2016-01-04 15:10 +0100
            Re: [PATCH v2 17/32] arm: define __smp_xxx "Michael S. Tsirkin" <mst@redhat.com> - 2016-01-05 15:40 +0100
          Re: [PATCH v2 17/32] arm: define __smp_xxx "Michael S. Tsirkin" <mst@redhat.com> - 2016-01-04 21:40 +0100
        Re: [PATCH v2 17/32] arm: define __smp_xxx "Michael S. Tsirkin" <mst@redhat.com> - 2016-01-04 21:20 +0100

csiph-web