atomic: use <linux/atomic.h>
authorArun Sharma <asharma@fb.com>
Tue, 26 Jul 2011 23:09:06 +0000 (16:09 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Jul 2011 23:49:47 +0000 (16:49 -0700)
This allows us to move duplicated code in <asm/atomic.h>
(atomic_inc_not_zero() for now) to <linux/atomic.h>

Signed-off-by: Arun Sharma <asharma@fb.com>
Reviewed-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: David Miller <davem@davemloft.net>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
439 files changed:
arch/alpha/include/asm/atomic.h
arch/alpha/include/asm/local.h
arch/alpha/kernel/perf_event.c
arch/alpha/kernel/smp.c
arch/alpha/lib/dec_and_lock.c
arch/arm/include/asm/atomic.h
arch/arm/kernel/smp.c
arch/arm/kernel/traps.c
arch/arm/mach-at91/pm.c
arch/arm/mach-bcmring/dma.c
arch/arm/mach-cns3xxx/include/mach/pm.h
arch/arm/mach-cns3xxx/pm.c
arch/arm/mach-omap1/pm.c
arch/arm/mach-s3c2440/clock.c
arch/arm/mach-s3c2440/s3c2442.c
arch/arm/mach-s3c2440/s3c244x-clock.c
arch/avr32/include/asm/atomic.h
arch/blackfin/include/asm/atomic.h
arch/blackfin/include/asm/dma.h
arch/blackfin/include/asm/ipipe.h
arch/blackfin/include/asm/spinlock.h
arch/blackfin/kernel/ftrace.c
arch/blackfin/kernel/ipipe.c
arch/blackfin/kernel/nmi.c
arch/blackfin/mach-common/smp.c
arch/cris/arch-v32/drivers/cryptocop.c
arch/cris/arch-v32/kernel/smp.c
arch/cris/include/asm/atomic.h
arch/cris/include/asm/bitops.h
arch/cris/kernel/process.c
arch/frv/include/asm/atomic.h
arch/frv/include/asm/hardirq.h
arch/frv/kernel/irq.c
arch/h8300/include/asm/atomic.h
arch/ia64/include/asm/atomic.h
arch/ia64/include/asm/processor.h
arch/ia64/include/asm/spinlock.h
arch/ia64/kernel/smp.c
arch/ia64/kernel/smpboot.c
arch/ia64/kernel/uncached.c
arch/m32r/include/asm/atomic.h
arch/m32r/include/asm/mmu_context.h
arch/m32r/include/asm/spinlock.h
arch/m32r/kernel/smp.c
arch/m32r/kernel/traps.c
arch/m68k/include/asm/atomic.h
arch/microblaze/include/asm/mmu_context_mm.h
arch/microblaze/include/asm/prom.h
arch/mips/include/asm/atomic.h
arch/mips/include/asm/hw_irq.h
arch/mips/include/asm/local.h
arch/mips/include/asm/smp.h
arch/mips/kernel/irq.c
arch/mips/kernel/mips-mt.c
arch/mips/kernel/rtlx.c
arch/mips/kernel/smp-cmp.c
arch/mips/kernel/smp-mt.c
arch/mips/kernel/smp.c
arch/mips/kernel/smtc-proc.c
arch/mips/kernel/smtc.c
arch/mips/kernel/sync-r4k.c
arch/mips/kernel/vpe.c
arch/mips/mipssim/sim_smtc.c
arch/mips/sgi-ip27/ip27-nmi.c
arch/mn10300/include/asm/atomic.h
arch/mn10300/include/asm/mmu_context.h
arch/mn10300/include/asm/spinlock.h
arch/mn10300/include/asm/system.h
arch/mn10300/kernel/mn10300-watchdog.c
arch/mn10300/kernel/traps.c
arch/mn10300/mm/misalignment.c
arch/mn10300/proc-mn2ws0050/proc-init.c
arch/parisc/include/asm/atomic.h
arch/parisc/include/asm/bitops.h
arch/parisc/include/asm/mmu_context.h
arch/parisc/kernel/parisc_ksyms.c
arch/parisc/kernel/smp.c
arch/parisc/kernel/traps.c
arch/parisc/lib/bitops.c
arch/powerpc/include/asm/atomic.h
arch/powerpc/include/asm/emulated_ops.h
arch/powerpc/include/asm/irq.h
arch/powerpc/include/asm/local.h
arch/powerpc/include/asm/prom.h
arch/powerpc/kernel/of_platform.c
arch/powerpc/kernel/ppc_ksyms.c
arch/powerpc/kernel/rtas.c
arch/powerpc/kernel/rtasd.c
arch/powerpc/kernel/smp-tbsync.c
arch/powerpc/kernel/smp.c
arch/powerpc/platforms/83xx/km83xx.c
arch/powerpc/platforms/83xx/mpc832x_mds.c
arch/powerpc/platforms/83xx/mpc834x_itx.c
arch/powerpc/platforms/83xx/mpc834x_mds.c
arch/powerpc/platforms/83xx/mpc836x_mds.c
arch/powerpc/platforms/83xx/sbc834x.c
arch/powerpc/platforms/85xx/mpc85xx_cds.c
arch/powerpc/platforms/85xx/mpc85xx_mds.c
arch/powerpc/platforms/85xx/sbc8548.c
arch/powerpc/platforms/cell/cpufreq_spudemand.c
arch/powerpc/platforms/cell/smp.c
arch/powerpc/platforms/cell/spufs/context.c
arch/powerpc/platforms/chrp/smp.c
arch/powerpc/platforms/iseries/smp.c
arch/powerpc/platforms/powermac/backlight.c
arch/powerpc/platforms/powermac/smp.c
arch/powerpc/platforms/pseries/eeh.c
arch/powerpc/platforms/pseries/eeh_cache.c
arch/powerpc/platforms/pseries/smp.c
arch/powerpc/sysdev/fsl_soc.c
arch/powerpc/sysdev/tsi108_dev.c
arch/s390/include/asm/atomic.h
arch/s390/kernel/dis.c
arch/s390/kernel/traps.c
arch/sh/include/asm/atomic.h
arch/sh/include/asm/hw_irq.h
arch/sh/include/asm/smp.h
arch/sh/kernel/idle.c
arch/sh/kernel/smp.c
arch/sh/kernel/traps_64.c
arch/sh/kernel/unwinder.c
arch/sparc/include/asm/atomic_32.h
arch/sparc/include/asm/atomic_64.h
arch/sparc/include/asm/prom.h
arch/sparc/include/asm/smp_32.h
arch/sparc/include/asm/smp_64.h
arch/sparc/kernel/irq_64.c
arch/sparc/kernel/leon_smp.c
arch/sparc/kernel/perf_event.c
arch/sparc/kernel/smp_32.c
arch/sparc/kernel/smp_64.c
arch/sparc/lib/atomic32.c
arch/tile/include/asm/atomic.h
arch/tile/include/asm/atomic_32.h
arch/tile/include/asm/atomic_64.h
arch/tile/include/asm/bitops_32.h
arch/tile/include/asm/bitops_64.h
arch/tile/include/asm/spinlock_32.h
arch/tile/kernel/intvec_32.S
arch/tile/lib/atomic_32.c
arch/tile/lib/atomic_asm_32.S
arch/x86/ia32/sys_ia32.c
arch/x86/include/asm/apic.h
arch/x86/include/asm/atomic.h
arch/x86/include/asm/hw_irq.h
arch/x86/include/asm/local.h
arch/x86/include/asm/mce.h
arch/x86/include/asm/mmu_context.h
arch/x86/include/asm/prom.h
arch/x86/include/asm/spinlock.h
arch/x86/include/asm/thread_info.h
arch/x86/kernel/amd_gart_64.c
arch/x86/kernel/apic/apic.c
arch/x86/kernel/apic/es7000_32.c
arch/x86/kernel/cpu/common.c
arch/x86/kernel/i8259.c
arch/x86/kernel/irqinit.c
arch/x86/kernel/traps.c
arch/x86/kvm/lapic.c
arch/x86/kvm/timer.c
arch/x86/lib/atomic64_32.c
arch/x86/mm/mmio-mod.c
arch/xtensa/include/asm/atomic.h
arch/xtensa/kernel/process.c
crypto/af_alg.c
crypto/proc.c
crypto/rng.c
drivers/atm/ambassador.c
drivers/atm/atmtcp.c
drivers/atm/eni.c
drivers/atm/eni.h
drivers/atm/firestream.c
drivers/atm/fore200e.c
drivers/atm/horizon.c
drivers/atm/idt77252.c
drivers/atm/iphase.c
drivers/atm/nicstar.c
drivers/atm/suni.c
drivers/atm/uPD98402.c
drivers/atm/zatm.c
drivers/base/memory.c
drivers/base/power/sysfs.c
drivers/block/cciss_scsi.c
drivers/char/ipmi/ipmi_watchdog.c
drivers/char/mspec.c
drivers/connector/cn_proc.c
drivers/edac/edac_stub.c
drivers/firewire/core-card.c
drivers/firewire/core-device.c
drivers/firewire/core-topology.c
drivers/firewire/core.h
drivers/firewire/nosy.c
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_fence.c
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/ttm/ttm_lock.c
drivers/gpu/drm/ttm/ttm_object.c
drivers/gpu/drm/ttm/ttm_page_alloc.c
drivers/hwmon/sht15.c
drivers/infiniband/hw/cxgb4/mem.c
drivers/infiniband/hw/ehca/ehca_tools.h
drivers/infiniband/hw/nes/nes_cm.c
drivers/infiniband/ulp/ipoib/ipoib.h
drivers/infiniband/ulp/srp/ib_srp.c
drivers/isdn/gigaset/gigaset.h
drivers/md/dm-crypt.c
drivers/md/dm-kcopyd.c
drivers/md/dm-mpath.c
drivers/md/dm-queue-length.c
drivers/md/dm-table.c
drivers/media/video/hdpvr/hdpvr-core.c
drivers/media/video/tlg2300/pd-dvb.c
drivers/media/video/uvc/uvc_ctrl.c
drivers/media/video/uvc/uvc_queue.c
drivers/media/video/uvc/uvc_v4l2.c
drivers/media/video/uvc/uvc_video.c
drivers/message/i2o/i2o_scsi.c
drivers/misc/phantom.c
drivers/net/atlx/atl1.c
drivers/net/atlx/atl2.c
drivers/net/atlx/atl2.h
drivers/net/cassini.c
drivers/net/cpmac.c
drivers/net/cxgb3/cxgb3_offload.c
drivers/net/cxgb3/l2t.h
drivers/net/cxgb3/t3cdev.h
drivers/net/cxgb4/cxgb4_uld.h
drivers/net/cxgb4/l2t.h
drivers/net/hamradio/6pack.c
drivers/net/hamradio/dmascc.c
drivers/net/ibmveth.c
drivers/net/phy/phy.c
drivers/net/ppp_generic.c
drivers/net/wimax/i2400m/i2400m.h
drivers/net/wireless/b43legacy/b43legacy.h
drivers/net/wireless/b43legacy/dma.h
drivers/oprofile/oprofile_stats.h
drivers/pci/hotplug/cpci_hotplug_core.c
drivers/pci/xen-pcifront.c
drivers/s390/block/dasd_eer.c
drivers/s390/char/sclp_quiesce.c
drivers/s390/char/vmlogrdr.c
drivers/s390/cio/device.h
drivers/s390/cio/qdio_main.c
drivers/s390/cio/qdio_thinint.c
drivers/s390/crypto/ap_bus.c
drivers/s390/crypto/zcrypt_api.c
drivers/s390/crypto/zcrypt_cex2a.c
drivers/s390/crypto/zcrypt_mono.c
drivers/s390/crypto/zcrypt_pcica.c
drivers/s390/crypto/zcrypt_pcicc.c
drivers/s390/crypto/zcrypt_pcixcc.c
drivers/s390/net/fsm.h
drivers/s390/scsi/zfcp_scsi.c
drivers/sbus/char/display7seg.c
drivers/scsi/dpt/dpti_i2o.h
drivers/scsi/hpsa.c
drivers/scsi/pm8001/pm8001_sas.h
drivers/staging/octeon/ethernet-rx.c
drivers/staging/octeon/ethernet-tx.c
drivers/staging/solo6x10/solo6x10.h
drivers/staging/tidspbridge/include/dspbridge/host_os.h
drivers/staging/winbond/mds_s.h
drivers/staging/winbond/wb35reg_s.h
drivers/tty/bfin_jtag_comm.c
drivers/tty/rocket.c
drivers/tty/serial/dz.c
drivers/tty/serial/sb1250-duart.c
drivers/tty/serial/zs.c
drivers/usb/gadget/f_audio.c
drivers/usb/gadget/f_rndis.c
drivers/usb/gadget/uvc_queue.c
drivers/usb/image/microtek.c
drivers/usb/misc/appledisplay.c
drivers/usb/serial/garmin_gps.c
drivers/usb/wusbcore/wa-rpipe.c
drivers/vhost/vhost.h
drivers/video/sh_mobile_lcdcfb.c
drivers/video/vermilion/vermilion.h
drivers/w1/masters/matrox_w1.c
drivers/w1/w1.c
drivers/w1/w1_family.h
drivers/watchdog/intel_scu_watchdog.c
drivers/watchdog/sbc7240_wdt.c
fs/btrfs/delayed-inode.h
fs/direct-io.c
fs/eventpoll.c
fs/file_table.c
fs/gfs2/main.c
fs/nfs/cache_lib.h
fs/nfs/direct.c
fs/notify/group.c
fs/notify/inode_mark.c
fs/notify/mark.c
fs/notify/notification.c
fs/notify/vfsmount_mark.c
fs/ntfs/inode.h
fs/posix_acl.c
fs/proc/meminfo.c
include/acpi/platform/aclinux.h
include/asm-generic/atomic.h
include/asm-generic/local.h
include/asm-generic/local64.h
include/drm/ttm/ttm_lock.h
include/linux/aio.h
include/linux/atmdev.h
include/linux/atomic.h
include/linux/backing-dev.h
include/linux/bit_spinlock.h
include/linux/buffer_head.h
include/linux/configfs.h
include/linux/connector.h
include/linux/cred.h
include/linux/crypto.h
include/linux/dcache.h
include/linux/debug_locks.h
include/linux/device.h
include/linux/edac.h
include/linux/fault-inject.h
include/linux/fdtable.h
include/linux/filter.h
include/linux/firewire.h
include/linux/fsnotify_backend.h
include/linux/interrupt.h
include/linux/jump_label.h
include/linux/kdb.h
include/linux/key.h
include/linux/kgdb.h
include/linux/kobject.h
include/linux/mlx4/device.h
include/linux/mman.h
include/linux/mmzone.h
include/linux/mount.h
include/linux/mutex.h
include/linux/netdevice.h
include/linux/nfs_fs_sb.h
include/linux/oprofile.h
include/linux/pci.h
include/linux/perf_event.h
include/linux/phy.h
include/linux/proc_fs.h
include/linux/quota.h
include/linux/rwsem.h
include/linux/sem.h
include/linux/skbuff.h
include/linux/sonet.h
include/linux/spinlock.h
include/linux/sunrpc/auth.h
include/linux/sunrpc/cache.h
include/linux/sunrpc/timer.h
include/linux/swap.h
include/linux/sysfs.h
include/linux/vmstat.h
include/linux/workqueue.h
include/net/ax25.h
include/net/cipso_ipv4.h
include/net/flow.h
include/net/inet_hashtables.h
include/net/inet_timewait_sock.h
include/net/inetpeer.h
include/net/ip_vs.h
include/net/lib80211.h
include/net/llc.h
include/net/neighbour.h
include/net/net_namespace.h
include/net/netfilter/nf_conntrack.h
include/net/netlabel.h
include/net/netns/conntrack.h
include/net/sctp/structs.h
include/pcmcia/ds.h
include/rdma/ib_sa.h
include/rdma/ib_verbs.h
include/rxrpc/types.h
include/scsi/scsi_device.h
kernel/audit.c
kernel/auditsc.c
kernel/cgroup.c
kernel/cpuset.c
kernel/debug/debug_core.c
kernel/rcupdate.c
kernel/rcutorture.c
kernel/rcutree_trace.c
kernel/rwsem.c
kernel/stop_machine.c
kernel/taskstats.c
kernel/trace/trace.h
kernel/trace/trace_mmiotrace.c
lib/atomic64.c
lib/atomic64_test.c
lib/crc32.c
lib/dec_and_lock.c
mm/init-mm.c
mm/kmemleak.c
mm/slob.c
mm/vmalloc.c
net/atm/atm_misc.c
net/atm/clip.c
net/atm/common.c
net/atm/lec.c
net/atm/proc.c
net/bridge/br_fdb.c
net/core/flow.c
net/decnet/dn_fib.c
net/decnet/dn_neigh.c
net/decnet/dn_table.c
net/decnet/dn_timer.c
net/ipv4/cipso_ipv4.c
net/ipv4/raw.c
net/ipv6/ip6_tunnel.c
net/iucv/iucv.c
net/l2tp/l2tp_core.c
net/l2tp/l2tp_ppp.c
net/netfilter/nfnetlink_log.c
net/netfilter/nfnetlink_queue.c
net/netlabel/netlabel_cipso_v4.c
net/netlabel/netlabel_kapi.c
net/netlabel/netlabel_mgmt.c
net/netlabel/netlabel_mgmt.h
net/netlabel/netlabel_unlabeled.c
net/sunrpc/xprtrdma/xprt_rdma.h
net/tipc/core.h
security/selinux/hooks.c
security/selinux/xfrm.c
sound/pci/echoaudio/darla20.c
sound/pci/echoaudio/darla24.c
sound/pci/echoaudio/echo3g.c
sound/pci/echoaudio/gina20.c
sound/pci/echoaudio/gina24.c
sound/pci/echoaudio/indigo.c
sound/pci/echoaudio/indigodj.c
sound/pci/echoaudio/indigodjx.c
sound/pci/echoaudio/indigoio.c
sound/pci/echoaudio/indigoiox.c
sound/pci/echoaudio/layla20.c
sound/pci/echoaudio/layla24.c
sound/pci/echoaudio/mia.c
sound/pci/echoaudio/mona.c
sound/pci/lx6464es/lx6464es.h
sound/sparc/dbri.c

index e756d04b6cd5dcdf07b4f394b8be15f1814c4849..88b7491490bc648fb443c4be92b514088c2b3099 100644 (file)
@@ -199,7 +199,6 @@ static __inline__ int atomic_add_unless(atomic_t *v, int a, int u)
        return c != (u);
 }
 
-#define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)
 
 /**
  * atomic64_add_unless - add unless the number is a given value
index b9e3e3318371e132d11437ce63a9e5456ac43fb8..9c94b8456043cdceda6e76c951fbbeb0921e5816 100644 (file)
@@ -2,7 +2,7 @@
 #define _ALPHA_LOCAL_H
 
 #include <linux/percpu.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 typedef struct
 {
index 8e47709160f84962bd6b2744ea6a1a5b9ae49b28..8143cd7cdbfbe62a7f6568f4fc1767f31d499997 100644 (file)
@@ -17,7 +17,7 @@
 #include <linux/init.h>
 
 #include <asm/hwrpb.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/irq.h>
 #include <asm/irq_regs.h>
 #include <asm/pal.h>
index d739703608fcc6c29c0adaa2b2e065ee22b77a85..4087a569b43b15f7f135241c88092395651a4a7a 100644 (file)
@@ -31,7 +31,7 @@
 
 #include <asm/hwrpb.h>
 #include <asm/ptrace.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include <asm/io.h>
 #include <asm/irq.h>
index 0f5520d2f45fc41d72d2d333fb291c50517bfa3c..f9f5fe830e9f9c8912daaf830c4a4b54454ea43c 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #include <linux/spinlock.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
   asm (".text                                  \n\
        .global _atomic_dec_and_lock            \n\
index 7e79503ab89b5d395e634fda206e1e97d6262d04..4d501f1bdc9d4243f32fa34cf722bc1e82e7aa37 100644 (file)
@@ -217,7 +217,6 @@ static inline int atomic_add_unless(atomic_t *v, int a, int u)
                c = old;
        return c != u;
 }
-#define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)
 
 #define atomic_inc(v)          atomic_add(1, v)
 #define atomic_dec(v)          atomic_sub(1, v)
index 167e3cbe1f2fc815367c955c29d0a842b6059f62..d88ff0230e826f8ea15a60560668dcf81ef80373 100644 (file)
@@ -27,7 +27,7 @@
 #include <linux/clockchips.h>
 #include <linux/completion.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/cacheflush.h>
 #include <asm/cpu.h>
 #include <asm/cputype.h>
index 2d3436e9f71f034ec3f8cb70e636fa07f5d15bc2..bc9f9da782cb85ff3eb0171b9c0d5b8630397c90 100644 (file)
@@ -25,7 +25,7 @@
 #include <linux/init.h>
 #include <linux/sched.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/cacheflush.h>
 #include <asm/system.h>
 #include <asm/unistd.h>
index ea53f4d9b283069673ce3624d822abc1be8610f4..4159eca78945360b8b9a4fc5630ba5ddab7e07a8 100644 (file)
@@ -20,7 +20,7 @@
 #include <linux/io.h>
 
 #include <asm/irq.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/mach/time.h>
 #include <asm/mach/irq.h>
 
index 9f2a948e0e72a61083cf3038a03f4aa2bae4520c..0ca00050666aa56cc920bc1f81f0af3196bb234a 100644 (file)
@@ -34,7 +34,7 @@
 
 #include <linux/mm.h>
 #include <linux/pfn.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <mach/dma.h>
 
 /* I don't quite understand why dc4 fails when this is set to 1 and DMA is enabled */
index 6eae7f764d1df98ac8ed41e1c0fa84cb83900101..c2588cc991d1282ef3095884162de9b0d6035986 100644 (file)
@@ -11,7 +11,7 @@
 #ifndef __CNS3XXX_PM_H
 #define __CNS3XXX_PM_H
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 void cns3xxx_pwr_clk_en(unsigned int block);
 void cns3xxx_pwr_clk_dis(unsigned int block);
index 5e579552aa5444fb7189b8df54e09758fd912b56..0c04678615ceade16015442eeefada0ae1623c7d 100644 (file)
@@ -10,7 +10,7 @@
 #include <linux/module.h>
 #include <linux/io.h>
 #include <linux/delay.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <mach/system.h>
 #include <mach/cns3xxx.h>
 #include <mach/pm.h>
index 98ba9784aa1508bed004759158b6affa18c95580..495b3987d461f840434d547977c716ce1cc8149d 100644 (file)
@@ -44,7 +44,7 @@
 #include <linux/io.h>
 
 #include <asm/irq.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/mach/time.h>
 #include <asm/mach/irq.h>
 
index 554e0d3ec70b0f8979c857636a402790c98c49c5..f9e6bdaf41d289f1afe60e8cb952e8c5dc5fda44 100644 (file)
@@ -36,7 +36,7 @@
 #include <linux/io.h>
 
 #include <mach/hardware.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/irq.h>
 
 #include <mach/regs-clock.h>
index 6224bad4d604161c96676171b1ae3ea019b2c675..9ad99f8016a174b119c3ff46bf51e1191320146f 100644 (file)
@@ -38,7 +38,7 @@
 #include <linux/io.h>
 
 #include <mach/hardware.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/irq.h>
 
 #include <mach/regs-clock.h>
index f8d96130d1d1d99c9daa6e692b5df3a0ec4995d4..7f5ea0a169a5650195111bdec0b1dad2f5d0e100 100644 (file)
@@ -35,7 +35,7 @@
 #include <linux/io.h>
 
 #include <mach/hardware.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/irq.h>
 
 #include <mach/regs-clock.h>
index bbce6a1c6bb67b873918a32fc68e9a6ea1e5890b..f229c3849f03938e20136d30d8eef0d5914ea2c5 100644 (file)
@@ -188,7 +188,6 @@ static inline int atomic_sub_if_positive(int i, atomic_t *v)
 #define atomic_dec_and_test(v) (atomic_sub_return(1, v) == 0)
 #define atomic_add_negative(i, v) (atomic_add_return(i, v) < 0)
 
-#define atomic_inc_not_zero(v) atomic_add_unless(v, 1, 0)
 #define atomic_dec_if_positive(v) atomic_sub_if_positive(1, v)
 
 #define smp_mb__before_atomic_dec()    barrier()
index 4c707dbe1ff9f64643822094eb9d7f09a1b30885..f2cf5b714ea4cc79f424c1ffb20f6ed19a2917f3 100644 (file)
@@ -97,7 +97,6 @@ static inline void atomic_set_mask(int mask, atomic_t *v)
                c = old;                                        \
        c != (u);                                               \
 })
-#define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)
 
 /*
  * atomic_inc_and_test - increment and test
index d9dbc1a5353440bb6dc2e12e8fed21e25d034fb9..dac0c97242bbf6ef3e4a45bcc2914cad8522f046 100644 (file)
@@ -10,7 +10,7 @@
 
 #include <linux/interrupt.h>
 #include <mach/dma.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/blackfin.h>
 #include <asm/page.h>
 #include <asm-generic/dma.h>
index 9e0cc0e2534f67376769410059b6fe76bf00600e..17b5e92e3bc683e1382d926297484582725a0273 100644 (file)
@@ -32,7 +32,7 @@
 #include <asm/ptrace.h>
 #include <asm/irq.h>
 #include <asm/bitops.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/traps.h>
 #include <asm/bitsperlong.h>
 
index 2336093fca23bb5d649af26922b11a271d9e468e..490c7caa02d9337b7b91ae8db6934320e0e91715 100644 (file)
@@ -11,7 +11,7 @@
 # include <asm-generic/spinlock.h>
 #else
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 asmlinkage int __raw_spin_is_locked_asm(volatile int *ptr);
 asmlinkage void __raw_spin_lock_asm(volatile int *ptr);
index 48808a12b4279f909ddf2afa404f0778a776c309..9277905b82cf27efacef0cf5f83bc00af838d7db 100644 (file)
@@ -9,7 +9,7 @@
 #include <linux/kernel.h>
 #include <linux/sched.h>
 #include <linux/uaccess.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/cacheflush.h>
 
 #ifdef CONFIG_DYNAMIC_FTRACE
index 486426f8a0d79c203d591569e298b33e7040bfdb..dbe11220cc53113f590a4642b26d7db3bbe200a0 100644 (file)
@@ -32,7 +32,7 @@
 #include <linux/unistd.h>
 #include <linux/io.h>
 #include <asm/system.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/irq_handler.h>
 
 DEFINE_PER_CPU(struct pt_regs, __ipipe_tick_regs);
index 679d0db352564584bc2a699adfee03c04c4a4d07..9919d29287dce98ed39daa2fa64e7b4f3fe42a1e 100644 (file)
@@ -18,7 +18,7 @@
 #include <linux/smp.h>
 #include <linux/timer.h>
 #include <asm/blackfin.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/cacheflush.h>
 #include <asm/bfin_watchdog.h>
 
index 1c143a4de5f50a9b012607049411b184cb794816..107622aacf6b62ac59acd07d61551aff42bf1660 100644 (file)
@@ -23,7 +23,7 @@
 #include <linux/seq_file.h>
 #include <linux/irq.h>
 #include <linux/slab.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/cacheflush.h>
 #include <asm/irq_handler.h>
 #include <asm/mmu_context.h>
index c03bc3bc30c2f581f1dce2a4783fcf570d81ab6c..642c6fed43d753b4375ff97ffa3f215eec849349 100644 (file)
@@ -16,7 +16,7 @@
 
 #include <asm/uaccess.h>
 #include <asm/io.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include <linux/list.h>
 #include <linux/interrupt.h>
index a0843a71aaeed9eb47ed62b121f7e997bfc0c85d..0b99df72d2a460992978256eacf8b48c6f56d180 100644 (file)
@@ -7,7 +7,7 @@
 #include <asm/mmu_context.h>
 #include <hwregs/asm/mmu_defs_asm.h>
 #include <hwregs/supp_reg.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include <linux/err.h>
 #include <linux/init.h>
index 88dc9b9c4ba051f84988926c4ab304af8091bc27..ce9f67e4d9779e57c6f56f1b106ab29ac5aa163a 100644 (file)
@@ -150,7 +150,6 @@ static inline int atomic_add_unless(atomic_t *v, int a, int u)
        cris_atomic_restore(v, flags);
        return ret != u;
 }
-#define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)
 
 /* Atomic operations are already serializing */
 #define smp_mb__before_atomic_dec()    barrier()
index c0092fc7d8466829e369323a4dc9ded2cad3bb71..a78a2d70cd8b2aa1acd2050a9006f88a9bfab163 100644 (file)
@@ -20,7 +20,7 @@
 
 #include <arch/bitops.h>
 #include <asm/system.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/compiler.h>
 
 /*
index c99aeab7cef727b0cf6ebf18f93216f715d49216..aa585e4e979eca9b7aacad7721f4116353790587 100644 (file)
@@ -12,7 +12,7 @@
  * This file handles the architecture-dependent parts of process handling..
  */
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/pgtable.h>
 #include <asm/uaccess.h>
 #include <asm/irq.h>
index fae32c7fdcb6619c487f3786993c70b6b0481788..b07b75f411f29eb11692fd93650398d5570f9712 100644 (file)
@@ -256,7 +256,6 @@ static __inline__ int atomic_add_unless(atomic_t *v, int a, int u)
        return c != (u);
 }
 
-#define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)
 
 #include <asm-generic/atomic-long.h>
 #endif /* _ASM_ATOMIC_H */
index 5fc8b6f5bc55ccdc3934acf5e416f1d84ce52a35..c62833d6ebbb8def0aa8829c890e4bf0be5bd384 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef __ASM_HARDIRQ_H
 #define __ASM_HARDIRQ_H
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 extern atomic_t irq_err_count;
 static inline void ack_bad_irq(int irq)
index a5f624a9f5593de4221f8d038077fb56bce9e5f9..3facbc28cbbcf2be4f72d6f16ac1d6dd5fd9562f 100644 (file)
@@ -25,7 +25,7 @@
 #include <linux/module.h>
 #include <linux/bitops.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/io.h>
 #include <asm/smp.h>
 #include <asm/system.h>
index 984221abb66d3d470483f0f14a7271ef944dce21..b641714774eae1382c8138c0e0b7038b74436aca 100644 (file)
@@ -116,7 +116,6 @@ static inline int atomic_add_unless(atomic_t *v, int a, int u)
        local_irq_restore(flags);
        return ret != u;
 }
-#define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)
 
 static __inline__ void atomic_clear_mask(unsigned long mask, unsigned long *v)
 {
index 446881439675934b295d39fcd0519fce19f6ffdd..fdb887005dfffbdeeef7bcb9067704d1295a913b 100644 (file)
@@ -105,7 +105,6 @@ static __inline__ int atomic_add_unless(atomic_t *v, int a, int u)
        return c != (u);
 }
 
-#define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)
 
 static __inline__ long atomic64_add_unless(atomic64_t *v, long a, long u)
 {
index 03afe7970748ce4dc5336ba0b9ff4169729965e9..d9f397fae03eb7e89712aa7cedef3b8d11082b4e 100644 (file)
@@ -75,7 +75,7 @@
 #include <asm/percpu.h>
 #include <asm/rse.h>
 #include <asm/unwind.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #ifdef CONFIG_NUMA
 #include <asm/nodedata.h>
 #endif
index 1a91c9121d17b5f032b192905370a69d7d24bee8..b77768d35f93fbfe76d933770d97d68a579e4053 100644 (file)
@@ -13,7 +13,7 @@
 #include <linux/kernel.h>
 #include <linux/bitops.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/intrinsics.h>
 #include <asm/system.h>
 
index be450a3e9871673e22d56445dbe69f80522baac4..0bd537b4ea6b82629fe598b2370e4a8d098c89de 100644 (file)
@@ -32,7 +32,7 @@
 #include <linux/bitops.h>
 #include <linux/kexec.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/current.h>
 #include <asm/delay.h>
 #include <asm/machvec.h>
index 14ec641003daf268fe58c54b0e926afdf8a3ec69..559097986672f663cf1b612586a5646fc8aeb1d8 100644 (file)
@@ -40,7 +40,7 @@
 #include <linux/percpu.h>
 #include <linux/bitops.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/cache.h>
 #include <asm/current.h>
 #include <asm/delay.h>
index c4696d217ce0bfe5216393cd4ad572194937175d..6a867dc45c05b75af1a06e8f7eaaffc04249b96d 100644 (file)
@@ -25,7 +25,7 @@
 #include <asm/pal.h>
 #include <asm/system.h>
 #include <asm/pgtable.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/tlbflush.h>
 #include <asm/sn/arch.h>
 
index d44a51e5271b7b5b10a5d8610ce1076f4e536be5..d64d894dc549c5efdcc620062f5abf2741ca670d 100644 (file)
@@ -262,7 +262,6 @@ static __inline__ int atomic_add_unless(atomic_t *v, int a, int u)
        return c != (u);
 }
 
-#define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)
 
 static __inline__ void atomic_clear_mask(unsigned long  mask, atomic_t *addr)
 {
index a70a3df33635f96844fe34c75721336d8cc2fbc0..a979a41981689a7321a7e758a3c5ec744d6f9202 100644 (file)
@@ -11,7 +11,7 @@
 
 #ifndef __ASSEMBLY__
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/pgalloc.h>
 #include <asm/mmu.h>
 #include <asm/tlbflush.h>
index 179a06489b1086036cae78a0fadd59801f2da8f1..b0ea2f26da3bc57e93956e053c04ef59af9857cd 100644 (file)
@@ -10,7 +10,7 @@
  */
 
 #include <linux/compiler.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/page.h>
 
 /*
index 092d40a6708e4a35ffec5e6f4f966791551d50c6..ce7aea34fdf410857799d9e17e092ff1aa1936e8 100644 (file)
@@ -26,7 +26,7 @@
 
 #include <asm/cacheflush.h>
 #include <asm/pgalloc.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/io.h>
 #include <asm/mmu_context.h>
 #include <asm/m32r.h>
index fbd109031df3aca4c83851494044492a0cc20965..ee6a9199561ca8b46b3e8c633966c61f44e2d824 100644 (file)
@@ -21,7 +21,7 @@
 #include <asm/system.h>
 #include <asm/uaccess.h>
 #include <asm/io.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include <asm/smp.h>
 
index 307a573881ad2ff3a98e123462d3dfe87f544670..e844a2d2ba231c5ed9d6a521285b04897db4cc58 100644 (file)
@@ -198,7 +198,6 @@ static __inline__ int atomic_add_unless(atomic_t *v, int a, int u)
        return c != (u);
 }
 
-#define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)
 
 /* Atomic operations are already serializing */
 #define smp_mb__before_atomic_dec()    barrier()
index 3e5c254e8d1c33a2849b1e0141dcd1f4b5fa6e84..d6864774644874f14c4a28830bf6077dada09a4d 100644 (file)
@@ -11,7 +11,7 @@
 #ifndef _ASM_MICROBLAZE_MMU_CONTEXT_H
 #define _ASM_MICROBLAZE_MMU_CONTEXT_H
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/bitops.h>
 #include <asm/mmu.h>
 #include <asm-generic/mm_hooks.h>
index 9bd01ecb00d69e980e0568b75a3e8b882d090b71..9ad567e2d425eae6a2628774b27da824bb0b0bb4 100644 (file)
@@ -21,7 +21,7 @@
 
 #include <linux/types.h>
 #include <asm/irq.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #define HAVE_ARCH_DEVTREE_FIXUPS
 
index 4a02fe891ab6d5909b11997d738010844f710637..833a4023648a7850980a22a6a8c7559a923721c3 100644 (file)
@@ -325,7 +325,6 @@ static __inline__ int atomic_add_unless(atomic_t *v, int a, int u)
        }
        return c != (u);
 }
-#define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)
 
 #define atomic_dec_return(v) atomic_sub_return(1, (v))
 #define atomic_inc_return(v) atomic_add_return(1, (v))
index 77adda297ad9811b20b71e22af13d11707100044..9e8ef5994c9cf15b20068376e8e06d7194b9bf3c 100644 (file)
@@ -8,7 +8,7 @@
 #ifndef __ASM_HW_IRQ_H
 #define __ASM_HW_IRQ_H
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 extern atomic_t irq_err_count;
 
index fffc8307a80a31e11424cc0996ec749ad5f1a0c4..94fde8d0fac1c60e1ee5999d14f8e4f0ec4c1226 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <linux/percpu.h>
 #include <linux/bitops.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/cmpxchg.h>
 #include <asm/war.h>
 
index af42385245d5d44099289fafbf678e72d27a39c7..d4fb4d852a6db5e1778bbc6542807ca2c0919e56 100644 (file)
@@ -17,7 +17,7 @@
 #include <linux/threads.h>
 #include <linux/cpumask.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/smp-ops.h>
 
 extern int smp_num_siblings;
index 9b734d74ae8e0ee43922d34629ed1838d5c0e7c8..b53970d809916efafff50fde04b371c279efb8ac 100644 (file)
@@ -23,7 +23,7 @@
 #include <linux/kgdb.h>
 #include <linux/ftrace.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/system.h>
 #include <asm/uaccess.h>
 
index b2259e7cd829161b958464fdc375bf68c182b34f..594ca69cb867aa67b91098fe1b262e90fc832b57 100644 (file)
@@ -12,7 +12,7 @@
 
 #include <asm/cpu.h>
 #include <asm/processor.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/system.h>
 #include <asm/hardirq.h>
 #include <asm/mmu_context.h>
index 557ef72472e08f082e19f068f7d131b93ab9856e..7a80b7cda7cc0219e1de607aebed7c316cf6b0ee 100644 (file)
@@ -36,7 +36,7 @@
 #include <asm/mipsmtregs.h>
 #include <asm/mips_mt.h>
 #include <asm/cacheflush.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/cpu.h>
 #include <asm/processor.h>
 #include <asm/system.h>
index cc81771b882ca6bbf4240c4b3228165ffc9b2506..fe3095160655755f87fa7d0641d86b4916e3bc5a 100644 (file)
@@ -25,7 +25,7 @@
 #include <linux/interrupt.h>
 #include <linux/compiler.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/cacheflush.h>
 #include <asm/cpu.h>
 #include <asm/processor.h>
index 1ec56e635d04a480905d1913cd89457eef2be607..ce9e286f0a74912560adaaa428efeaeac37d6c7d 100644 (file)
@@ -24,7 +24,7 @@
 #include <linux/compiler.h>
 #include <linux/smp.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/cacheflush.h>
 #include <asm/cpu.h>
 #include <asm/processor.h>
index 32a2561010823253c24b9d9cffdc1801d380f9a9..32c1e954cd3761d4c0f6c7625440387cf011f149 100644 (file)
@@ -34,7 +34,7 @@
 #include <linux/err.h>
 #include <linux/ftrace.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/cpu.h>
 #include <asm/processor.h>
 #include <asm/r4k-timer.h>
index fe256559c9978491ced2297b184c733b849050fa..928a5a61e1a61d58cd97df79330e732e2f7fc6c8 100644 (file)
@@ -10,7 +10,7 @@
 
 #include <asm/cpu.h>
 #include <asm/processor.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/system.h>
 #include <asm/hardirq.h>
 #include <asm/mmu_context.h>
index cedac4633741b24c14393da27cb6423c79ecac3f..f0895e70e283b3982c18a672ad8875a8b1e6ad55 100644 (file)
@@ -30,7 +30,7 @@
 
 #include <asm/cpu.h>
 #include <asm/processor.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/system.h>
 #include <asm/hardirq.h>
 #include <asm/hazards.h>
index 05dd170a83f7e379ec4e40fe37c454e2c7a4e61a..99f913c8d7a6eb3e4db9ac2f7b8def493a4e5e5e 100644 (file)
@@ -16,7 +16,7 @@
 #include <linux/cpumask.h>
 
 #include <asm/r4k-timer.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/barrier.h>
 #include <asm/mipsregs.h>
 
index dbb6b408f00151972605313c4bfbeaa42bf19bb6..2cd50ad0d5c66ec04d4034c6bf81b690dd5cb1a8 100644 (file)
@@ -46,7 +46,7 @@
 #include <asm/mipsregs.h>
 #include <asm/mipsmtregs.h>
 #include <asm/cacheflush.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/cpu.h>
 #include <asm/mips_mt.h>
 #include <asm/processor.h>
index 30df47258c2c4f0cd55cd79e52064798587834e1..915063991f6e0fd7605f1c48114502f25dd4a94a 100644 (file)
@@ -24,7 +24,7 @@
 #include <linux/interrupt.h>
 #include <linux/smp.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/cpu.h>
 #include <asm/processor.h>
 #include <asm/smtc.h>
index bc4fa8dd67f318b4f5f1881d7f353b6ab80b49f8..005c29ed419a2110820d3982824ba40eef4182b3 100644 (file)
@@ -3,7 +3,7 @@
 #include <linux/nodemask.h>
 #include <linux/spinlock.h>
 #include <linux/smp.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/sn/types.h>
 #include <asm/sn/addrs.h>
 #include <asm/sn/nmi.h>
index 9d773a639513abd3a35311a117a563912d52b236..041b9d69d86c63acf475e48a4c2c7263c1a722a4 100644 (file)
@@ -269,7 +269,6 @@ static inline void atomic_dec(atomic_t *v)
        c != (u);                                               \
 })
 
-#define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)
 
 /**
  * atomic_clear_mask - Atomically clear bits in memory
index c8f6c82672adb46ceefb31f719c72d80bb53d3f3..c67c2b5365a6dbef415d767a69db49f73ea2ad69 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef _ASM_MMU_CONTEXT_H
 #define _ASM_MMU_CONTEXT_H
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/pgalloc.h>
 #include <asm/tlbflush.h>
 #include <asm-generic/mm_hooks.h>
index 93429154e898e72c1f3e39a4e6ac71f8b7cc1ed5..1ae580f3893344fe7ad99c71b4c5fa19c0692870 100644 (file)
@@ -11,7 +11,7 @@
 #ifndef _ASM_SPINLOCK_H
 #define _ASM_SPINLOCK_H
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/rwlock.h>
 #include <asm/page.h>
 
index 8ff3e5aaca4124cba71e8baade685253e551c94c..94b4c5e1491b9c918ecb5241a52b0f06b36a48a0 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <linux/kernel.h>
 #include <linux/irqflags.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #if !defined(CONFIG_LAZY_SAVE_FPU)
 struct fpu_state_struct;
index c5e12bfd9fcdbb2e28d5b42d1916c2b08f2d20c5..a45f0c7549a61c8ebaa79efb699ca9deceffb8a7 100644 (file)
@@ -19,7 +19,7 @@
 #include <linux/nmi.h>
 #include <asm/processor.h>
 #include <asm/system.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/intctl-regs.h>
 #include <asm/rtc-regs.h>
 #include <asm/div64.h>
index bd3e5e73826e1839b307d5ae7a279a3e93f6afbc..9220a75a7b43e61bce4d622b4771f2ce33ec3945 100644 (file)
@@ -30,7 +30,7 @@
 #include <asm/system.h>
 #include <linux/uaccess.h>
 #include <asm/io.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/smp.h>
 #include <asm/pgalloc.h>
 #include <asm/cacheflush.h>
index eef989c1d0c10baf8614edbd8f87ea09c4d2cf91..f9bb8cb1c14ad0e044320f53efca5431927e8121 100644 (file)
@@ -26,7 +26,7 @@
 #include <asm/system.h>
 #include <asm/uaccess.h>
 #include <asm/io.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/smp.h>
 #include <asm/pgalloc.h>
 #include <asm/cpu-regs.h>
index c58249b9525aaa1936a3f31a466e413cf5b52318..fe6e24906ffc2c9ade3e5404ef5bdeb52026f0a5 100644 (file)
@@ -18,7 +18,7 @@
 #include <asm/system.h>
 #include <asm/uaccess.h>
 #include <asm/io.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/smp.h>
 #include <asm/pgalloc.h>
 #include <asm/busctl-regs.h>
index f81955934aebf4dbf0e97add2e45bb6cdc9042fa..192488999b630688f5ac672f0b58a297e084aeb6 100644 (file)
@@ -220,7 +220,6 @@ static __inline__ int atomic_add_unless(atomic_t *v, int a, int u)
        return c != (u);
 }
 
-#define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)
 
 #define atomic_add(i,v)        ((void)(__atomic_add_return( (i),(v))))
 #define atomic_sub(i,v)        ((void)(__atomic_add_return(-(i),(v))))
index 4e833aa05a442bc3054ce0159968101af0c808a5..8c9b631d2a783e8a9e7cf4041fb0d917da585d06 100644 (file)
@@ -8,7 +8,7 @@
 #include <linux/compiler.h>
 #include <asm/types.h>         /* for BITS_PER_LONG/SHIFT_PER_LONG */
 #include <asm/byteorder.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 /*
  * HP-PARISC specific bit operations
index 354b2aca990e2701c7149c35df4b6a06131988bc..59be257644335f7fff70b54ca65661633b9eaa22 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <linux/mm.h>
 #include <linux/sched.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/pgalloc.h>
 #include <asm/pgtable.h>
 #include <asm-generic/mm_hooks.h>
index df653663d3dbdd7efdb858e48225f71d4eeebd0b..a7bb757a5497137d894518d1dc9d252cb845bb49 100644 (file)
@@ -31,7 +31,7 @@
 #include <linux/string.h>
 EXPORT_SYMBOL(memset);
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 EXPORT_SYMBOL(__xchg8);
 EXPORT_SYMBOL(__xchg32);
 EXPORT_SYMBOL(__cmpxchg_u32);
index 828305f19cfffd202e6c0244bff54a561eb7fe3f..32d588488f04b380fb39b4b237d047fa8cc64fc1 100644 (file)
@@ -33,7 +33,7 @@
 #include <linux/ftrace.h>
 
 #include <asm/system.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/current.h>
 #include <asm/delay.h>
 #include <asm/tlbflush.h>
index 8b58bf0b7d5aa47fd6f54317c74a0528e253b86c..f19e6604026a870461742f6e9b1add327626342b 100644 (file)
@@ -33,7 +33,7 @@
 #include <asm/irq.h>
 #include <asm/traps.h>
 #include <asm/unaligned.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/smp.h>
 #include <asm/pdc.h>
 #include <asm/pdc_chassis.h>
index 353963d42059aa409eb36c15a00bbfb5b49068a0..a8bffd8af77d36e208567365de011bc27ba30976 100644 (file)
@@ -9,7 +9,7 @@
 #include <linux/kernel.h>
 #include <linux/spinlock.h>
 #include <asm/system.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #ifdef CONFIG_SMP
 arch_spinlock_t __atomic_hash[ATOMIC_HASH_SIZE] __lock_aligned = {
index b8f152ece02572be5a15acb75ec5ac312d9ec0d9..b2bcbee622ea2d588898e5923573f31944449d41 100644 (file)
@@ -212,7 +212,6 @@ static __inline__ int atomic_add_unless(atomic_t *v, int a, int u)
        return t != u;
 }
 
-#define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)
 
 #define atomic_sub_and_test(a, v)      (atomic_sub_return((a), (v)) == 0)
 #define atomic_dec_and_test(v)         (atomic_dec_return((v)) == 0)
index 2cc41c715d2ba2cfb9783d91bda466c3edac0099..63f2a22e9954a10f6996308de941de6c0fbcad83 100644 (file)
@@ -18,7 +18,7 @@
 #ifndef _ASM_POWERPC_EMULATED_OPS_H
 #define _ASM_POWERPC_EMULATED_OPS_H
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/perf_event.h>
 
 
index c57a28e52b6459322df4c2b7d407f27ecaa18ee3..c0e1bc319e353bc9f8b08d91c41efc89acafa463 100644 (file)
@@ -14,7 +14,7 @@
 #include <linux/radix-tree.h>
 
 #include <asm/types.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 
 /* Define a way to iterate across irqs. */
index c2410af6bfd954db83d41db7363bfc3d0ea5ec82..b8da913638646e3b7f432ad52b2d59495415f7ca 100644 (file)
@@ -2,7 +2,7 @@
 #define _ARCH_POWERPC_LOCAL_H
 
 #include <linux/percpu.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 typedef struct
 {
index b823536375dc441bae7d848d0444730955ebea67..b5c91901e3840dd630c459c12322a122771e5030 100644 (file)
@@ -18,7 +18,7 @@
  */
 #include <linux/types.h>
 #include <asm/irq.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #define HAVE_ARCH_DEVTREE_FIXUPS
 
index 24582181b6ec36d691ec2df451f132dedaf1a769..59dbf6abaaf3140f59b37f7c7bfabbbf3e3f2508 100644 (file)
@@ -26,7 +26,7 @@
 #include <asm/topology.h>
 #include <asm/pci-bridge.h>
 #include <asm/ppc-pci.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #ifdef CONFIG_PPC_OF_PLATFORM_PCI
 
index 7d28f540200c2871c241650d63abad90be20289a..f5ae872a2ef0da5afc1a6c01fc7627b97121bc1f 100644 (file)
@@ -18,7 +18,7 @@
 #include <asm/cacheflush.h>
 #include <asm/uaccess.h>
 #include <asm/io.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/checksum.h>
 #include <asm/pgtable.h>
 #include <asm/tlbflush.h>
index 0e0ea941156f645dc3b965c5bcf11cc2842d773a..d5ca8236315ca3b407dc51ecd67653b00f22837f 100644 (file)
@@ -39,7 +39,7 @@
 #include <asm/udbg.h>
 #include <asm/syscalls.h>
 #include <asm/smp.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/time.h>
 #include <asm/mmu.h>
 #include <asm/topology.h>
index 67f6c3b51357c80c16d373fc0f05561314a6cf0b..481ef064c8f1b4df1adaa6e6d0ce54c99f19103f 100644 (file)
@@ -27,7 +27,7 @@
 #include <asm/rtas.h>
 #include <asm/prom.h>
 #include <asm/nvram.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/machdep.h>
 
 
index 03e45c4a9ef1892c9ca904ec393e1d7d66b78a27..640de836e466eebd697acad630ed1d04f35a2f82 100644 (file)
@@ -11,7 +11,7 @@
 #include <linux/unistd.h>
 #include <linux/init.h>
 #include <linux/slab.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/smp.h>
 #include <asm/time.h>
 
index f932f8a0cf0c590eedd636938652fdef5f93d22e..7bf2187dfd99e3135f78225a3217d53a3a099b6e 100644 (file)
@@ -33,7 +33,7 @@
 #include <linux/topology.h>
 
 #include <asm/ptrace.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/irq.h>
 #include <asm/page.h>
 #include <asm/pgtable.h>
index f8fa2fc3129f1ad170d2529096f7653f502623da..c55129f5760a112b18d33ab12b5ad8575fb271b1 100644 (file)
@@ -28,7 +28,7 @@
 #include <linux/of_device.h>
 
 #include <asm/system.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/time.h>
 #include <asm/io.h>
 #include <asm/machdep.h>
index 93e60f1f21a9c23de86fc5a7eb56de5ee31582e4..32a52896822fe2f78ed7a59321769ac95b64188f 100644 (file)
@@ -27,7 +27,7 @@
 #include <linux/of_device.h>
 
 #include <asm/system.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/time.h>
 #include <asm/io.h>
 #include <asm/machdep.h>
index 81e44fa1c644bb00b34bc9d5a055708eb9c2feb0..6b45969567d4edf53bbd16315c40ab755cfbaf87 100644 (file)
@@ -26,7 +26,7 @@
 #include <linux/of_platform.h>
 
 #include <asm/system.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/time.h>
 #include <asm/io.h>
 #include <asm/machdep.h>
index c1b1dc50b32af92520f8f1c5f097759f6a1dcd9b..041c5177e737be0a4a68fd3b30e4b8e3cca1febf 100644 (file)
@@ -26,7 +26,7 @@
 #include <linux/of_platform.h>
 
 #include <asm/system.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/time.h>
 #include <asm/io.h>
 #include <asm/machdep.h>
index 81c052b1353efa883239ec3462210b39d14b9499..934cc8c46bbc4cc33ed2e638e26d5d51f3771458 100644 (file)
@@ -34,7 +34,7 @@
 #include <linux/of_device.h>
 
 #include <asm/system.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/time.h>
 #include <asm/io.h>
 #include <asm/machdep.h>
index 49023dbe15763c9188f7ffb73f7e8341137bfaa8..af41d8c810a87e15b384aa383371fe2505d7150a 100644 (file)
@@ -28,7 +28,7 @@
 #include <linux/of_platform.h>
 
 #include <asm/system.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/time.h>
 #include <asm/io.h>
 #include <asm/machdep.h>
index 6299a2a51ae8f2dc49444d5ffa66b0912e4688a6..2bf99786d249580c4aaf0c138b87c0ef507802de 100644 (file)
@@ -31,7 +31,7 @@
 #include <asm/system.h>
 #include <asm/pgtable.h>
 #include <asm/page.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/time.h>
 #include <asm/io.h>
 #include <asm/machdep.h>
index 747d1ee661fde1f21f2d980f7fca99888c020c21..973b3f4a4b495c3b07fe51389a1ffc02322d3973 100644 (file)
@@ -36,7 +36,7 @@
 #include <linux/memblock.h>
 
 #include <asm/system.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/time.h>
 #include <asm/io.h>
 #include <asm/machdep.h>
index ecdd8c09e4ed7c874ae7e7e58449196bbb4fb19b..d07dcb7f4ee980b9a71fb8246719ab6c0602d201 100644 (file)
@@ -34,7 +34,7 @@
 #include <asm/system.h>
 #include <asm/pgtable.h>
 #include <asm/page.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/time.h>
 #include <asm/io.h>
 #include <asm/machdep.h>
index d809836bcf5f36042841a256fd12436638d653bf..7f92096fe9685ca02659433082c6c1b58038db86 100644 (file)
@@ -24,7 +24,7 @@
 #include <linux/sched.h>
 #include <linux/timer.h>
 #include <linux/workqueue.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/machdep.h>
 #include <asm/spu.h>
 
index dbb641ea90dd6105324ad53844cee8b800c594ce..f2e1dfe4bf318ec5e43d316508161abb462e6b99 100644 (file)
@@ -28,7 +28,7 @@
 #include <linux/cpu.h>
 
 #include <asm/ptrace.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/irq.h>
 #include <asm/page.h>
 #include <asm/pgtable.h>
index 0c87bcd2452aa6326d60c8fa4deed828d5624e03..bf4d41d8fa148f8a101a46ed04842e2482619a8d 100644 (file)
@@ -24,7 +24,7 @@
 #include <linux/mm.h>
 #include <linux/module.h>
 #include <linux/slab.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/spu.h>
 #include <asm/spu_csa.h>
 #include "spufs.h"
index a800122e4dda8aa54c8af184af8e1e2a04540fce..feab30bbae233b27ff9ed9f2a84a008af770b0f4 100644 (file)
@@ -18,7 +18,7 @@
 #include <linux/spinlock.h>
 
 #include <asm/ptrace.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/irq.h>
 #include <asm/page.h>
 #include <asm/pgtable.h>
index 2df48c2287bdcfaad589e3ba44c19bce98ba9f73..8bda9be06fa012c290448d62581cecfa30529b03 100644 (file)
@@ -29,7 +29,7 @@
 #include <linux/cpu.h>
 
 #include <asm/ptrace.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/irq.h>
 #include <asm/page.h>
 #include <asm/pgtable.h>
index d679964ae2ab28321589c9194de481a7ba0d2bea..c2f3e861f5ea20406d502245cf2561756a647f29 100644 (file)
@@ -12,7 +12,7 @@
 #include <linux/backlight.h>
 #include <linux/adb.h>
 #include <linux/pmu.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/prom.h>
 #include <asm/backlight.h>
 
index d15fca32297878970e8b1130098fcaef18a7c7e3..9a521dc8e485101637e4de9f948d427ec286e362 100644 (file)
@@ -35,7 +35,7 @@
 #include <linux/compiler.h>
 
 #include <asm/ptrace.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/code-patching.h>
 #include <asm/irq.h>
 #include <asm/page.h>
index 46b55cf563e3a482943e3c2c6c03925f985e8b8c..ada6e07532ecf8919987e33818d69330ea0c760b 100644 (file)
@@ -31,7 +31,7 @@
 #include <linux/spinlock.h>
 #include <linux/of.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/eeh.h>
 #include <asm/eeh_event.h>
 #include <asm/io.h>
index 8ed0d2d0e1b50b76630f2f1f3b65146bbb35d304..fc5ae767989e4b86cc44e2b2ad0088c70ce269fd 100644 (file)
@@ -25,7 +25,7 @@
 #include <linux/rbtree.h>
 #include <linux/slab.h>
 #include <linux/spinlock.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/pci-bridge.h>
 #include <asm/ppc-pci.h>
 
index 1672db2d1b0e33fd39d98ab1a40f73a60e94e3cf..4e44c4dcd11c0cc077ca29ddae6bd4d6a6fe9462 100644 (file)
@@ -27,7 +27,7 @@
 #include <linux/cpu.h>
 
 #include <asm/ptrace.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/irq.h>
 #include <asm/page.h>
 #include <asm/pgtable.h>
index 265313e8396b0d576871a1a10a58ae23940d4d74..2d66275e489fbc88f130664b84eab979f1c39485 100644 (file)
@@ -32,7 +32,7 @@
 #include <linux/fs_uart_pd.h>
 
 #include <asm/system.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/io.h>
 #include <asm/irq.h>
 #include <asm/time.h>
index ee056807b52c027674e04438721abd42fce0feb4..9f51f97abb5ddc2014b41b291591f7ec110a73fd 100644 (file)
@@ -23,7 +23,7 @@
 #include <asm/tsi108.h>
 
 #include <asm/system.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/io.h>
 #include <asm/irq.h>
 #include <asm/prom.h>
index d9db13810d15cf8c1733768c52faec3e54cc9ab3..29d75632922891d2cd5d2d9bd4a41e8893d75b26 100644 (file)
@@ -108,7 +108,6 @@ static inline int atomic_add_unless(atomic_t *v, int a, int u)
        return c != u;
 }
 
-#define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)
 
 #undef __CS_LOOP
 
index 1ca3d1d6a86ce5e4f3e15309f41cf6fe03300660..45df6d456aa162873fa89492e6225c9061ae29fc 100644 (file)
@@ -27,7 +27,7 @@
 #include <asm/system.h>
 #include <asm/uaccess.h>
 #include <asm/io.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/mathemu.h>
 #include <asm/cpcmd.h>
 #include <asm/lowcore.h>
index e9372c77cced767facd9ad4d44c245e03f284250..ffabcd9d33635dbcff5f35077ee5853bee8f8758 100644 (file)
@@ -36,7 +36,7 @@
 #include <asm/system.h>
 #include <asm/uaccess.h>
 #include <asm/io.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/mathemu.h>
 #include <asm/cpcmd.h>
 #include <asm/lowcore.h>
index c7983124d99dfb6a31bfbf5233f48ba77a168119..8ddb2635cf9262d24e280f96aff4619c79d68df4 100644 (file)
@@ -30,7 +30,6 @@
 #define atomic_inc_and_test(v)         (atomic_inc_return(v) == 0)
 #define atomic_sub_and_test(i,v)       (atomic_sub_return((i), (v)) == 0)
 #define atomic_dec_and_test(v)         (atomic_sub_return(1, (v)) == 0)
-#define atomic_inc_not_zero(v)         atomic_add_unless((v), 1, 0)
 
 #define atomic_inc(v)                  atomic_add(1, (v))
 #define atomic_dec(v)                  atomic_sub(1, (v))
index 603cdde813d11a2b37b94145c77db0caa06a3bd0..693d441840587e8b0ebe7b11eda694d8f1d7945e 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <linux/init.h>
 #include <linux/sh_intc.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 extern atomic_t irq_err_count;
 
index 9070d943ddde7b17af3195bf86ccb7d567a74055..78b0d0f4b24b24ca07b186bc2bfbd475e99863a6 100644 (file)
@@ -8,7 +8,7 @@
 #ifdef CONFIG_SMP
 
 #include <linux/spinlock.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/current.h>
 #include <asm/percpu.h>
 
index 425d604e3a28bc13aa3acb615c568690fcd48f33..84db0d6ccd0d627225c4d8fba76f6ed47edcfdd6 100644 (file)
@@ -18,7 +18,7 @@
 #include <linux/smp.h>
 #include <asm/pgalloc.h>
 #include <asm/system.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/smp.h>
 
 void (*pm_idle)(void) = NULL;
index 6207561ea34a93ca315589469b3a77257711254f..3147a9a6fb8b4a93e5d04d29b364762e3d432f4f 100644 (file)
@@ -21,7 +21,7 @@
 #include <linux/cpu.h>
 #include <linux/interrupt.h>
 #include <linux/sched.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/processor.h>
 #include <asm/system.h>
 #include <asm/mmu_context.h>
index 67110be83fd7239b963390942f7a2fa165fca59b..cd3a4048329915cb40defbc5bbff26b83dd9a829 100644 (file)
@@ -28,7 +28,7 @@
 #include <asm/system.h>
 #include <asm/uaccess.h>
 #include <asm/io.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/processor.h>
 #include <asm/pgtable.h>
 #include <asm/fpu.h>
index 468889d958f464dfec94e0bdf33c788de7466162..521b5432471fcd24d896fc5edaaecc386fa180be 100644 (file)
@@ -13,7 +13,7 @@
 #include <linux/spinlock.h>
 #include <linux/module.h>
 #include <asm/unwinder.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 /*
  * This is the most basic stack unwinder an architecture can
index 7ae128b19d3f6552a847acf4cc0c707f9766f9c7..7646f2cef5d064ac55791aff0cafa8677475f143 100644 (file)
@@ -52,7 +52,6 @@ extern void atomic_set(atomic_t *, int);
 #define atomic_dec_and_test(v) (atomic_dec_return(v) == 0)
 #define atomic_sub_and_test(i, v) (atomic_sub_return(i, v) == 0)
 
-#define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)
 
 /* This is the old 24-bit implementation.  It's still used internally
  * by some sparc-specific code, notably the semaphore implementation.
index bdb2ff880bdd68f58c0b4357479f31bd32ff19d9..337139ef91bea9f0923a4380061854245291cac8 100644 (file)
@@ -85,7 +85,6 @@ static inline int atomic_add_unless(atomic_t *v, int a, int u)
        return c != (u);
 }
 
-#define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)
 
 #define atomic64_cmpxchg(v, o, n) \
        ((__typeof__((v)->counter))cmpxchg(&((v)->counter), (o), (n)))
index 56bbaadef6462a6eca1ccf6b375e951d42f51c8d..edd3d3cde460e58ef34fd096c7bbf47aceec920d 100644 (file)
@@ -21,7 +21,7 @@
 #include <linux/of_pdt.h>
 #include <linux/proc_fs.h>
 #include <linux/mutex.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #define OF_ROOT_NODE_ADDR_CELLS_DEFAULT        2
 #define OF_ROOT_NODE_SIZE_CELLS_DEFAULT        1
index 093f10843ff2981c813e8f9669f8f211c3f9ffd1..01c51c7043411571437e6129f07f62b0fe1e040b 100644 (file)
@@ -22,7 +22,7 @@
 
 #include <asm/ptrace.h>
 #include <asm/asi.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 /*
  *     Private routines/data
index 20bca89507102d84e6eecc0cb0272eaa9433b46a..29862a9e906581d5fc58378db16c885992fcfa94 100644 (file)
@@ -27,7 +27,7 @@
  */
 
 #include <linux/bitops.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/percpu.h>
 
 DECLARE_PER_CPU(cpumask_t, cpu_sibling_map);
index 4e78862d12fd82aaab5359385503e0168465afcd..0dd8422a469cc3a035fcd98fa47ee9e9a682f7a1 100644 (file)
@@ -26,7 +26,7 @@
 
 #include <asm/ptrace.h>
 #include <asm/processor.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/system.h>
 #include <asm/irq.h>
 #include <asm/io.h>
index fe8fb44c609c57fc9fa3dd5eb4881a6c9e30731b..1210fde187406c2a5c149151ab46205c00c3358d 100644 (file)
@@ -28,7 +28,7 @@
 #include <asm/tlbflush.h>
 
 #include <asm/ptrace.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/irq_regs.h>
 #include <asm/traps.h>
 
index 62a034318b1818ba12f010f89821a53e41bd851b..171e8d84dc3f32daa3dc1c46893ee022f9da77f7 100644 (file)
@@ -22,7 +22,7 @@
 #include <asm/stacktrace.h>
 #include <asm/cpudata.h>
 #include <asm/uaccess.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/nmi.h>
 #include <asm/pcr.h>
 
index 21b125341bf79a5dbe8282d22751c4f805ab5d11..f671e7fd6ddc964b3cccf7db8e615c58f8ca10ca 100644 (file)
@@ -22,7 +22,7 @@
 #include <linux/delay.h>
 
 #include <asm/ptrace.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include <asm/irq.h>
 #include <asm/page.h>
index 99cb17251bb55be51dc29df0ddc6ec36694d2074..4a442c32e11787f223cac53dfaf345ec78b02b5c 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <asm/head.h>
 #include <asm/ptrace.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/tlbflush.h>
 #include <asm/mmu_context.h>
 #include <asm/cpudata.h>
index d3c7a12ad879a4ed7dba7202417f7dfa1644a64a..1a371f8ae0b0f57f9babb4ede85b910c528140f0 100644 (file)
@@ -7,7 +7,7 @@
  * Based on asm-parisc/atomic.h Copyright (C) 2000 Philipp Rumpf
  */
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/spinlock.h>
 #include <linux/module.h>
 
index 739cfe0499d1da5e682f342e0c2ade78d8905e00..e3272715c3cb3d03ba95b8ffb5f4b971967f56d0 100644 (file)
@@ -121,15 +121,6 @@ static inline int atomic_read(const atomic_t *v)
  */
 #define atomic_add_negative(i, v)      (atomic_add_return((i), (v)) < 0)
 
-/**
- * atomic_inc_not_zero - increment unless the number is zero
- * @v: pointer of type atomic_t
- *
- * Atomically increments @v by 1, so long as @v is non-zero.
- * Returns non-zero if @v was non-zero, and zero otherwise.
- */
-#define atomic_inc_not_zero(v)         atomic_add_unless((v), 1, 0)
-
 /* Nonexistent functions intended to cause link errors. */
 extern unsigned long __xchg_called_with_bad_pointer(void);
 extern unsigned long __cmpxchg_called_with_bad_pointer(void);
index 92a8bee323113520374d917155c7be3dcc358726..246feed4794d1af8c7971eab8862f8fe2e442323 100644 (file)
@@ -11,7 +11,7 @@
  *   NON INFRINGEMENT.  See the GNU General Public License for
  *   more details.
  *
- * Do not include directly; use <asm/atomic.h>.
+ * Do not include directly; use <linux/atomic.h>.
  */
 
 #ifndef _ASM_TILE_ATOMIC_32_H
@@ -21,7 +21,7 @@
 
 #ifndef __ASSEMBLY__
 
-/* Tile-specific routines to support <asm/atomic.h>. */
+/* Tile-specific routines to support <linux/atomic.h>. */
 int _atomic_xchg(atomic_t *v, int n);
 int _atomic_xchg_add(atomic_t *v, int i);
 int _atomic_xchg_add_unless(atomic_t *v, int a, int u);
index 1c1e60d8ccb6028e9e81ee704c14d0d71c1fb650..a48dda30cbccf5169446f49bab05104708a63e94 100644 (file)
@@ -11,7 +11,7 @@
  *   NON INFRINGEMENT.  See the GNU General Public License for
  *   more details.
  *
- * Do not include directly; use <asm/atomic.h>.
+ * Do not include directly; use <linux/atomic.h>.
  */
 
 #ifndef _ASM_TILE_ATOMIC_64_H
index d31ab905cfa7105b4ba32bcc03db55c8e0a74be1..571b118bfd9b29ca50246662cda4909ff703aee5 100644 (file)
@@ -16,7 +16,7 @@
 #define _ASM_TILE_BITOPS_32_H
 
 #include <linux/compiler.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/system.h>
 
 /* Tile-specific routines to support <asm/bitops.h>. */
index 68f8c5bc06797f3a00a3650f06da45a04abb299b..e9c8e381ee0ee8913cf08f60e05bb6fe051c63ea 100644 (file)
@@ -16,7 +16,7 @@
 #define _ASM_TILE_BITOPS_64_H
 
 #include <linux/compiler.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/system.h>
 
 /* See <asm/bitops.h> for API comments. */
index a8f2c6e31a87666c8578ef6ece328bf675371174..a5e4208d34f9ad9e6be2982a16046fbd04b8d34e 100644 (file)
@@ -17,7 +17,7 @@
 #ifndef _ASM_TILE_SPINLOCK_32_H
 #define _ASM_TILE_SPINLOCK_32_H
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/page.h>
 #include <asm/system.h>
 #include <linux/compiler.h>
index 72ade79b621bcd8b23ec44650e3d4af4fdbf0b66..fc94607f0bd50c8d5cdbf9f98bfcd42b26b51b03 100644 (file)
@@ -21,7 +21,7 @@
 #include <asm/ptrace.h>
 #include <asm/thread_info.h>
 #include <asm/irqflags.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/asm-offsets.h>
 #include <hv/hypervisor.h>
 #include <arch/abi.h>
index 46570211df5275766bdf8ef9284ab3edbb802f95..771b251b409d67453a4205cbb835e80b41ec8bc2 100644 (file)
@@ -17,7 +17,7 @@
 #include <linux/uaccess.h>
 #include <linux/module.h>
 #include <linux/mm.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/futex.h>
 #include <arch/chip.h>
 
index 24448734f6f17c3f70f95f4252afbf98c5dcce00..1f75a2a561011220f27b9d97cd27bd4f78567ea2 100644 (file)
@@ -70,7 +70,7 @@
  */
 
 #include <linux/linkage.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/page.h>
 #include <asm/processor.h>
 
index 5852519b2d0f94005d688159c045b52b69c8766b..f6f5c53dc90343e73847a3ae257279a757e016ca 100644 (file)
@@ -43,7 +43,7 @@
 #include <asm/mman.h>
 #include <asm/types.h>
 #include <asm/uaccess.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/vgtod.h>
 #include <asm/sys_ia32.h>
 
index 4a0b7c7e2cce5c430a95f6f972c7e810c379170f..7b3ca8324b69ce457ebb625b40dc11adf7f71aed 100644 (file)
@@ -8,7 +8,7 @@
 #include <asm/cpufeature.h>
 #include <asm/processor.h>
 #include <asm/apicdef.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/fixmap.h>
 #include <asm/mpspec.h>
 #include <asm/system.h>
index 952a826ac4e55bf605a05ddad11ae1fb9c315ae9..897969bdd4e69491af5294555a50c5ba5675ca0b 100644 (file)
@@ -244,7 +244,6 @@ static inline int atomic_add_unless(atomic_t *v, int a, int u)
        return c != (u);
 }
 
-#define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)
 
 /*
  * atomic_dec_if_positive - decrement by 1 if old value positive
index 13f5504c76c0a2ad32cdd2dc165c71e409bf9d63..09199052060fad79acdc8657795e1678a3140dd8 100644 (file)
@@ -21,7 +21,7 @@
 #include <linux/profile.h>
 #include <linux/smp.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/irq.h>
 #include <asm/sections.h>
 
index 2e9972468a5d71f6dd042a22fce9d28a9c296f39..9cdae5d47e8fad287dfdde2e27e2900b0ff30405 100644 (file)
@@ -4,7 +4,7 @@
 #include <linux/percpu.h>
 
 #include <asm/system.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/asm.h>
 
 typedef struct {
index 716b48af7863a6907db019580355c83a36fc01bc..c9321f34e55b3fa2cdb9fd4afeaa332dac345add 100644 (file)
@@ -124,7 +124,7 @@ extern struct atomic_notifier_head x86_mce_decoder_chain;
 
 #include <linux/percpu.h>
 #include <linux/init.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 extern int mce_disabled;
 extern int mce_p5_enabled;
index 8b5393ec1080838a61aa720b9c0dc88a41dcde26..69021528b43c240c2c67c4c4ab86b579b40c4ae5 100644 (file)
@@ -2,7 +2,7 @@
 #define _ASM_X86_MMU_CONTEXT_H
 
 #include <asm/desc.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/pgalloc.h>
 #include <asm/tlbflush.h>
 #include <asm/paravirt.h>
index df1287019e6d73d3991ff5ba73c441765c37c629..644dd885f05ae9af39e456ea4ec4499d6aa987e6 100644 (file)
@@ -19,7 +19,7 @@
 #include <linux/pci.h>
 
 #include <asm/irq.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/setup.h>
 #include <asm/irq_controller.h>
 
index e9e51f710e6cc050cb04d309e52c5acede4b89c4..ee67edf86fdd98929998276ad8e5ab02c93c333a 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef _ASM_X86_SPINLOCK_H
 #define _ASM_X86_SPINLOCK_H
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/page.h>
 #include <asm/processor.h>
 #include <linux/compiler.h>
index 1f2e61e28981b7a32d8f9f6f409475460a2ca73d..a1fe5c127b52f353ba55c3f12eb14ad71e0010fb 100644 (file)
@@ -21,7 +21,7 @@ struct task_struct;
 struct exec_domain;
 #include <asm/processor.h>
 #include <asm/ftrace.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 struct thread_info {
        struct task_struct      *task;          /* main task structure */
index b117efd24f71f589286aac56e0b50fb235dac0cc..8a439d364b941897897908178039b3799352575d 100644 (file)
@@ -30,7 +30,7 @@
 #include <linux/syscore_ops.h>
 #include <linux/io.h>
 #include <linux/gfp.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/mtrr.h>
 #include <asm/pgtable.h>
 #include <asm/proto.h>
index b24be38c8cf8ccaadf6136cf8606ca2861d3d3ca..52fa56399a5021664eca08743d9cd8eec1108b7e 100644 (file)
@@ -38,7 +38,7 @@
 #include <asm/perf_event.h>
 #include <asm/x86_init.h>
 #include <asm/pgalloc.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/mpspec.h>
 #include <asm/i8259.h>
 #include <asm/proto.h>
index 9536b3fe43f840bd8aa084de61413ebc3504193b..5d513bc47b6ba519e322035b28948e038de3b829 100644 (file)
@@ -48,7 +48,7 @@
 #include <linux/io.h>
 
 #include <asm/apicdef.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/fixmap.h>
 #include <asm/mpspec.h>
 #include <asm/setup.h>
index 22a073d7fbff25df173d42ef710d67da1a70c077..62184390a60121ec74465ae5e17d01be86853f4a 100644 (file)
@@ -21,7 +21,7 @@
 #include <linux/topology.h>
 #include <linux/cpumask.h>
 #include <asm/pgtable.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/proto.h>
 #include <asm/setup.h>
 #include <asm/apic.h>
index 65b8f5c2eebf809f2d5a21d59eddd267a958bf2f..610485223bdb8fd48ff71fb4ae5711b711c62361 100644 (file)
@@ -14,7 +14,7 @@
 #include <linux/io.h>
 #include <linux/delay.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/system.h>
 #include <asm/timer.h>
 #include <asm/hw_irq.h>
index f09d4bbe2d2d28528f91267448cf88143cee3f92..b3300e6bacefb490492dd74365f6b5f8eff5f624 100644 (file)
@@ -15,7 +15,7 @@
 #include <linux/io.h>
 #include <linux/delay.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/system.h>
 #include <asm/timer.h>
 #include <asm/hw_irq.h>
index fbc097a085ca3ccef8db8538a3f54aec6a5b466f..9682ec50180c1b732996773bfa4feafa18c6c116 100644 (file)
@@ -49,7 +49,7 @@
 #include <asm/stacktrace.h>
 #include <asm/processor.h>
 #include <asm/debugreg.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/system.h>
 #include <asm/traps.h>
 #include <asm/desc.h>
index 2b2255b1f04b38b6b106a2cd7af6d237856f1f45..57dcbd4308fa8f69efec6462a52a13b594bfbeb8 100644 (file)
@@ -33,7 +33,7 @@
 #include <asm/page.h>
 #include <asm/current.h>
 #include <asm/apicdef.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include "kvm_cache_regs.h"
 #include "irq.h"
 #include "trace.h"
index abd86e865be3be952b4cc00e967606bdf7b43d83..ae432ea1cd835731f26451dd22f9ff53b7b85eb6 100644 (file)
@@ -15,7 +15,7 @@
 #include <linux/kvm_host.h>
 #include <linux/kvm.h>
 #include <linux/hrtimer.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include "kvm_timer.h"
 
 static int __kvm_timer_fn(struct kvm_vcpu *vcpu, struct kvm_timer *ktimer)
index 540179e8e9fa9c8d58aeb724a354a5f9dec74f12..042f6826bf57b14d2931d5e41b8a726a43120387 100644 (file)
@@ -4,7 +4,7 @@
 
 #include <asm/processor.h>
 #include <asm/cmpxchg.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 long long atomic64_read_cx8(long long, const atomic64_t *v);
 EXPORT_SYMBOL(atomic64_read_cx8);
index 3adff7dcc148585339565e9d358fe315e0de818a..67421f38a215df252544f12805b5ea69e81f20e4 100644 (file)
@@ -34,7 +34,7 @@
 #include <asm/pgtable.h>
 #include <linux/mmiotrace.h>
 #include <asm/e820.h> /* for ISA_START_ADDRESS */
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/percpu.h>
 #include <linux/cpu.h>
 
index a96a0619d0b7ec630dc3cecf124a7389d6ce3cf3..7cca2fb18baf0c0c1008e4105259a0753b064af9 100644 (file)
@@ -248,7 +248,6 @@ static __inline__ int atomic_add_unless(atomic_t *v, int a, int u)
        return c != (u);
 }
 
-#define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)
 
 static inline void atomic_clear_mask(unsigned int mask, atomic_t *v)
 {
index e3558b9a58bab8f9d114e3cdab44d7fe3bf1ea4f..47041e7c088c58da4fadacd77d57995ab438d21c 100644 (file)
@@ -40,7 +40,7 @@
 #include <asm/platform.h>
 #include <asm/mmu.h>
 #include <asm/irq.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/asm-offsets.h>
 #include <asm/regs.h>
 
index 940d70cb5c25513ae5ffccea5be9d986af8dfad1..ac33d5f3077823af1e714039e2bc093763f8c2fb 100644 (file)
@@ -12,7 +12,7 @@
  *
  */
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <crypto/if_alg.h>
 #include <linux/crypto.h>
 #include <linux/init.h>
index 58fef67d4f4dbe9cb351c202be7518b003dfe893..3808697814d720aed2f9f5639791376586782be6 100644 (file)
@@ -13,7 +13,7 @@
  *
  */
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/init.h>
 #include <linux/crypto.h>
 #include <linux/rwsem.h>
index f93cb5311182bbc6faf48c46599e4b92578410bf..45229ae782be91d4bec33185bccdee77ce95f1d5 100644 (file)
@@ -12,7 +12,7 @@
  *
  */
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <crypto/internal/rng.h>
 #include <linux/err.h>
 #include <linux/module.h>
index bb3b016b6ce8efad07ea65d0df51cb0d6cf98d2d..f8f41e0e8a8c45a4cb595a6380fdb3fec9bad11d 100644 (file)
@@ -38,7 +38,7 @@
 #include <linux/ihex.h>
 #include <linux/slab.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/io.h>
 #include <asm/byteorder.h>
 
index 0b0625054a87a5697c8e4745bfd49eb2d1bf45c0..b22d71cac54cdc3f3d584842e7483317069c183a 100644 (file)
@@ -11,7 +11,7 @@
 #include <linux/init.h>
 #include <linux/slab.h>
 #include <asm/uaccess.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 
 extern int atm_init_aal5(struct atm_vcc *vcc); /* "raw" AAL5 transport */
index 3230ea0df83cc537d082eb6c620451df278075f2..93071417315f66227f45260fc5a0fa171f9b798f 100644 (file)
@@ -21,7 +21,7 @@
 #include <linux/slab.h>
 #include <asm/system.h>
 #include <asm/io.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/uaccess.h>
 #include <asm/string.h>
 #include <asm/byteorder.h>
index 493a6932507e9599cb232e017c20463aba6958f1..dc9a62cc26052a16189f17f4d3ee1155bd2e95fb 100644 (file)
@@ -14,7 +14,7 @@
 #include <linux/time.h>
 #include <linux/pci.h>
 #include <linux/spinlock.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include "midway.h"
 
index 7c7b571647f96b29a4366f35450a8f9059fffa7a..5072f8ac16fdc13d072d4fea67843388f07c41d2 100644 (file)
@@ -52,7 +52,7 @@
 #include <asm/system.h>
 #include <asm/string.h>
 #include <asm/io.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/uaccess.h>
 #include <linux/wait.h>
 
index bc9e702186dd64daf5445ea09710e5e8c7ee59eb..361f5aee3be12fec5afd8796eaa784b6d3291b89 100644 (file)
@@ -44,7 +44,7 @@
 #include <asm/dma.h>
 #include <asm/byteorder.h>
 #include <asm/uaccess.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #ifdef CONFIG_SBUS
 #include <linux/of.h>
index 287506183893d3683264c933b6f68d7d8d01746b..b81210330aca90227945f14dd853d281085952f4 100644 (file)
@@ -45,7 +45,7 @@
 
 #include <asm/system.h>
 #include <asm/io.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/uaccess.h>
 #include <asm/string.h>
 #include <asm/byteorder.h>
index be0dbfeb541ce11531b35b1af5ff0bedb58c7ba3..db06f34419cfe7ecf139e3ab47bcb300e9176f48 100644 (file)
@@ -46,7 +46,7 @@
 
 #include <asm/io.h>
 #include <asm/uaccess.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/byteorder.h>
 
 #ifdef CONFIG_ATM_IDT77252_USE_SUNI
index 957106f636ea6faeec7e6010c36c50de46ca6be0..cb90f7a3e07455745331a786c6ef20955c870d15 100644 (file)
@@ -58,7 +58,7 @@
 #include <linux/slab.h>
 #include <asm/system.h>  
 #include <asm/io.h>  
-#include <asm/atomic.h>  
+#include <linux/atomic.h>
 #include <asm/uaccess.h>  
 #include <asm/string.h>  
 #include <asm/byteorder.h>  
index 6b313ee9231baa2cd37893ba26c5e4877462ba0a..1c70c45fa044837d1b3e872c7bafe9220d074aef 100644 (file)
@@ -51,7 +51,7 @@
 #include <linux/idr.h>
 #include <asm/io.h>
 #include <asm/uaccess.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include "nicstar.h"
 #ifdef CONFIG_ATM_NICSTAR_USE_SUNI
 #include "suni.h"
index 41c56eae4c81622e3e22eae7b31a25d3d56dbe21..90f1ccca9e5215824ab531da5b8eaa1d662015c2 100644 (file)
@@ -25,7 +25,7 @@
 #include <asm/system.h>
 #include <asm/param.h>
 #include <asm/uaccess.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include "suni.h"
 
index c45ae0573bbd2cb69c43f7057f3954ee638b46dc..5120a96b3a894f4a62735c26caacbbf6c8a21ae3 100644 (file)
@@ -11,7 +11,7 @@
 #include <linux/init.h>
 #include <linux/slab.h>
 #include <asm/uaccess.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include "uPD98402.h"
 
index 7f8c5132ff323e901cfeadc5b35987bf6782d5fc..d889f56e8d8cf64cae17fc3bdb4c8ce120afc246 100644 (file)
@@ -27,7 +27,7 @@
 #include <asm/system.h>
 #include <asm/string.h>
 #include <asm/io.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/uaccess.h>
 
 #include "uPD98401.h"
index 45d7c8fc73bd46ca3c0ec68baad8a1be695b47c3..2840ed4668c1e234590be4c253d36e8d29e87ab8 100644 (file)
@@ -24,7 +24,7 @@
 #include <linux/stat.h>
 #include <linux/slab.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/uaccess.h>
 
 static DEFINE_MUTEX(mem_sysfs_mutex);
index 942d6a7c9ae14c04510537c75c4a2ce92d15e3ca..17b7934f31cb00c014688d6d0e197886687c3730 100644 (file)
@@ -5,7 +5,7 @@
 #include <linux/device.h>
 #include <linux/string.h>
 #include <linux/pm_runtime.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/jiffies.h>
 #include "power.h"
 
index 696100241a6fd017c655c424004af621ae0a491b..951a4e33b92b788b208d6320636b77422bf9474f 100644 (file)
@@ -33,7 +33,7 @@
 #include <linux/slab.h>
 #include <linux/string.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include <scsi/scsi_cmnd.h>
 #include <scsi/scsi_device.h>
index 320668f4c3aa71d0842d21e91b2fbb89e3ea8c3a..3302586655c4ac821afc90c04dceaa744bb4569c 100644 (file)
@@ -52,7 +52,7 @@
 #include <linux/string.h>
 #include <linux/ctype.h>
 #include <linux/delay.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #ifdef CONFIG_X86
 /*
index 25d139c9dbeddd86440847f3ced302950883ef98..5c0d96a820fa02f545d8f575d9fd54771063935c 100644 (file)
@@ -46,7 +46,7 @@
 #include <asm/page.h>
 #include <asm/system.h>
 #include <asm/pgtable.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/tlbflush.h>
 #include <asm/uncached.h>
 #include <asm/sn/addrs.h>
index 0debc17c8e2879487e416c6f58fecec30cf6a4ae..3ee1fdb31ea7daac5a123d8e72252f86ab271426 100644 (file)
@@ -29,7 +29,8 @@
 #include <linux/connector.h>
 #include <linux/gfp.h>
 #include <linux/ptrace.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
+
 #include <asm/unaligned.h>
 
 #include <linux/cn_proc.h>
index aab970760b755b4a5e3f848829bcbd74b3122a37..86ad2eee1201d78d95bc84369da772d2cf07f5a3 100644 (file)
@@ -14,7 +14,7 @@
  */
 #include <linux/module.h>
 #include <linux/edac.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/edac.h>
 
 int edac_op_state = EDAC_OPSTATE_INVAL;
index 29d2423fae6d999827c682648278366c07238a6e..85661b060ed71221aa7fc1be280d15ddfb6584ae 100644 (file)
@@ -32,7 +32,7 @@
 #include <linux/spinlock.h>
 #include <linux/workqueue.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/byteorder.h>
 
 #include "core.h"
index 95a4714018922b52ebf484897fe7bcbd106eb318..8ba7f7928f1f1dcd4fcedd33305277064bc8999b 100644 (file)
@@ -38,7 +38,7 @@
 #include <linux/string.h>
 #include <linux/workqueue.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/byteorder.h>
 #include <asm/system.h>
 
index 193ed9233144b458a486dfd13f7217037522efc9..94d3b494ddfb21877659c484cc93f9b4bfd61e7f 100644 (file)
@@ -29,7 +29,7 @@
 #include <linux/slab.h>
 #include <linux/spinlock.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/byteorder.h>
 #include <asm/system.h>
 
index 0fe4e4e6eda72a696596c7dbcce1a7f0f6538569..b45be5767529681018b90e2ea3d744517f80bdaf 100644 (file)
@@ -9,7 +9,7 @@
 #include <linux/slab.h>
 #include <linux/types.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 struct device;
 struct fw_card;
index 0618145376ade6b4608cd16792408f6e2b94ee23..763626b739d1c8593628712dbafc01af76cf1254 100644 (file)
@@ -37,7 +37,7 @@
 #include <linux/uaccess.h>
 #include <linux/wait.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/byteorder.h>
 
 #include "nosy.h"
index ef37a9b5a3cc2d284d10108045ea618735b8e3d1..32807baf55e232ebb0bc1c35ee4775d49fb1af00 100644 (file)
@@ -60,7 +60,7 @@
  *                          are considered as fatal)
  */
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/wait.h>
 #include <linux/list.h>
 #include <linux/kref.h>
index 021d2b6b556f9e837d2c8a508891c4b6bc19850e..7fd4e3e5ad5f133a37b0af396445cb0bab1cdaaa 100644 (file)
@@ -29,7 +29,7 @@
  *    Dave Airlie
  */
 #include <linux/seq_file.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/wait.h>
 #include <linux/list.h>
 #include <linux/kref.h>
index 2e618b5ac465de3bb83348c2791becbc43d04bac..56619f64b6bfa004c9b1900ac3dd36328593a6cf 100644 (file)
@@ -37,7 +37,7 @@
 #include <linux/mm.h>
 #include <linux/file.h>
 #include <linux/module.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #define TTM_ASSERT_LOCKED(param)
 #define TTM_DEBUG(fmt, arg...)
index de41e55a944ad8ef1f9ae7d5769a5ae4eb131279..075daf44bce406516b2b6e1f3b2ce905b2cd97f2 100644 (file)
@@ -30,7 +30,7 @@
 
 #include "ttm/ttm_lock.h"
 #include "ttm/ttm_module.h"
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/errno.h>
 #include <linux/wait.h>
 #include <linux/sched.h>
index ebddd443d91a72f916bd58bb1b0d70b55b5431c2..93577f2e2954d4549325ecb5ebb891044e05abd9 100644 (file)
@@ -55,7 +55,7 @@
 #include <linux/spinlock.h>
 #include <linux/slab.h>
 #include <linux/module.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 struct ttm_object_file {
        struct ttm_object_device *tdev;
index 170e751c283e80a7020eabd13356656ee5e035f3..727e93daac3b04ba387ecd5093a468e4889654e1 100644 (file)
@@ -40,7 +40,7 @@
 #include <linux/slab.h>
 #include <linux/dma-mapping.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include "ttm/ttm_bo_driver.h"
 #include "ttm/ttm_page_alloc.h"
index 7d231cf5d2ced2fe71c40b6dda38b809874a1e6f..fe4104c6b764e9064278bc2f02d9c27b4aff56e9 100644 (file)
@@ -32,7 +32,7 @@
 #include <linux/sht15.h>
 #include <linux/regulator/consumer.h>
 #include <linux/slab.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 /* Commands */
 #define SHT15_MEASURE_TEMP             0x03
index 0347eed4a16778f173415f47c49c45d9f6d99acc..40c835309e4924a6246a58e2e8fc0614dc62b67e 100644 (file)
@@ -31,7 +31,7 @@
  */
 
 #include <rdma/ib_umem.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include "iw_cxgb4.h"
 
index f09914cccf53c6597db58a971e62c7a16bfcd879..54c0d23bad9294c97f55402bb2910ef209d951b8 100644 (file)
@@ -58,7 +58,7 @@
 #include <linux/cpu.h>
 #include <linux/device.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/abs_addr.h>
 #include <asm/ibmebus.h>
 #include <asm/io.h>
index 73bc18465c9cf05884eeb773969fd13972105558..c118663e44377b2bba3cfb8d1bf246928a131004 100644 (file)
@@ -34,7 +34,7 @@
 
 #define TCPOPT_TIMESTAMP 8
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/skbuff.h>
 #include <linux/ip.h>
 #include <linux/tcp.h>
index 7b6985a2e6520f98e38d4a38337a6809e0049d85..b3cc1e062b174a583933572621acb8d5ca4ac7d7 100644 (file)
@@ -45,7 +45,7 @@
 
 #include <net/neighbour.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include <rdma/ib_verbs.h>
 #include <rdma/ib_pack.h>
index 7d5109bbd1ad867e70745d947e47cc7437607b96..0bfa545675b8e116832deeda2b9234c16e13a73c 100644 (file)
@@ -39,7 +39,7 @@
 #include <linux/random.h>
 #include <linux/jiffies.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include <scsi/scsi.h>
 #include <scsi/scsi_device.h>
index 6dd360734cfdf21e1af9a2e98fd817e9d77cc938..212efaf9a4e4ed261105bd39132ee885531c4930 100644 (file)
@@ -34,7 +34,7 @@
 #include <linux/tty.h>
 #include <linux/tty_driver.h>
 #include <linux/list.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #define GIG_VERSION {0, 5, 0, 0}
 #define GIG_COMPAT  {0, 4, 0, 0}
index c8827ffd85bb961b7e9cad4d54647ea0251fd716..bae6c4e23d3f7d02798478993c50b976767a81ee 100644 (file)
@@ -19,7 +19,7 @@
 #include <linux/workqueue.h>
 #include <linux/backing-dev.h>
 #include <linux/percpu.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/scatterlist.h>
 #include <asm/page.h>
 #include <asm/unaligned.h>
index 819e37eaaeba17cc3acf8009432f7b99f3dea4dd..320401dec1044215b16bd1c784c1fca2883b3537 100644 (file)
@@ -10,7 +10,7 @@
  */
 
 #include <linux/types.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/blkdev.h>
 #include <linux/fs.h>
 #include <linux/init.h>
index aa4e570c2cb5007cde5de16b9be07c001d980d68..c3547016f0f1e7156d1b28b0fded62b5bf534008 100644 (file)
@@ -19,7 +19,7 @@
 #include <linux/time.h>
 #include <linux/workqueue.h>
 #include <scsi/scsi_dh.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #define DM_MSG_PREFIX "multipath"
 #define MESG_STR(x) x, sizeof(x)
index f92b6cea9d9c8791997dc5e5c5d6003df578158e..03a837aa5ce64ebd38af21d324e77b14cd5f4434 100644 (file)
@@ -20,7 +20,7 @@
 #include <linux/ctype.h>
 #include <linux/errno.h>
 #include <linux/module.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #define DM_MSG_PREFIX  "multipath queue-length"
 #define QL_MIN_IO      128
index 451c3bb176d2953fcc8c5da8fccc42f34e83fc74..bfe9c2333ceacecddd00d058615fc8a9f2867b1b 100644 (file)
@@ -17,7 +17,7 @@
 #include <linux/interrupt.h>
 #include <linux/mutex.h>
 #include <linux/delay.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #define DM_MSG_PREFIX "table"
 
index a27d93b503a57d844ff4b76ace194686a6accc4a..5f1db46beb4e18031a0342f9f6e48cc241106303 100644 (file)
@@ -17,7 +17,7 @@
 #include <linux/slab.h>
 #include <linux/module.h>
 #include <linux/uaccess.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/usb.h>
 #include <linux/mutex.h>
 #include <linux/i2c.h>
index edd78f8b1baa4ee390d7b9a7ebc475ee567844e6..d0da11ae19dfe5cd4d218975db4b3de0747a41a8 100644 (file)
@@ -7,7 +7,7 @@
 
 #include "vendorcmds.h"
 #include <linux/sched.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 static void dvb_urb_cleanup(struct pd_dvb_adapter *pd_dvb);
 
index a4db26fa2f53269993660d8eedb7569111f5d0d2..2c8954ec685950bc0552f403dea77ce046fec7b2 100644 (file)
@@ -20,7 +20,7 @@
 #include <linux/videodev2.h>
 #include <linux/vmalloc.h>
 #include <linux/wait.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include "uvcvideo.h"
 
index f90ce9fce53927566b5569a9beeb387d034cb946..677691c44500f1ee0d8212c6639acf64861d1428 100644 (file)
@@ -19,7 +19,7 @@
 #include <linux/videodev2.h>
 #include <linux/vmalloc.h>
 #include <linux/wait.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include "uvcvideo.h"
 
index 543a80395b7f57d2c122049a7d8e69fc27a50901..dde6533e8e6dce16984c4db5eafb4c8ac25dba41 100644 (file)
@@ -21,7 +21,7 @@
 #include <linux/vmalloc.h>
 #include <linux/mm.h>
 #include <linux/wait.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include <media/v4l2-common.h>
 #include <media/v4l2-ioctl.h>
index 49994793cc777ab36c38a8dc43685b5886aaaa4d..8244167c8915452c6fb8fab3255ac9d0dc39ded6 100644 (file)
@@ -19,7 +19,7 @@
 #include <linux/videodev2.h>
 #include <linux/vmalloc.h>
 #include <linux/wait.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/unaligned.h>
 
 #include <media/v4l2-common.h>
index 74fbe56321ff837704f4d25bb42f8f5b518dbdb3..c8ed7b63fdf5e2dda7d2fb13463d18db2223feec 100644 (file)
@@ -59,7 +59,7 @@
 #include <asm/dma.h>
 #include <asm/system.h>
 #include <asm/io.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include <scsi/scsi.h>
 #include <scsi/scsi_host.h>
index b05db55c8c8e757c312184c797321942d814ec55..21b28fc6d91272c3191aba4e58c1c61aaefe7ede 100644 (file)
@@ -26,7 +26,7 @@
 #include <linux/sched.h>
 #include <linux/mutex.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/io.h>
 
 #define PHANTOM_VERSION                "n0.9.8"
index 6f0e9403004b7f23dc23fe5a9650050386a62110..97e6954304eab6aa502384e5febe7bbc76b1274c 100644 (file)
@@ -44,7 +44,7 @@
  * SMP torture testing
  */
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/byteorder.h>
 
 #include <linux/compiler.h>
index e0f87cf1e2babe129b3c9c5d40276698948115b6..d4f7dda397217e30063b91246902c942702ece8a 100644 (file)
@@ -20,7 +20,7 @@
  * Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  */
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/crc32.h>
 #include <linux/dma-mapping.h>
 #include <linux/etherdevice.h>
index 78344ddf4bf0a9790f207b0b0dc5e0b7a324073c..bf9016ebdd9bd637884bb598e9af61e2829cd205 100644 (file)
@@ -25,7 +25,7 @@
 #ifndef _ATL2_H_
 #define _ATL2_H_
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/netdevice.h>
 
 #ifndef _ATL2_HW_H_
index b414f5ae0da56187296247e3132ce80392c17808..646c86bcc545e08835cc07b07ca913b1ba64dbcc 100644 (file)
@@ -98,7 +98,7 @@
 
 #include <net/checksum.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/system.h>
 #include <asm/io.h>
 #include <asm/byteorder.h>
index 086ce0418b2941511ebe85f2f825ff205b47e6ae..e0638cb4b07c0f60babceca58436d687ef263938 100644 (file)
@@ -40,7 +40,7 @@
 #include <linux/dma-mapping.h>
 #include <linux/clk.h>
 #include <linux/gpio.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 MODULE_AUTHOR("Eugene Konev <ejka@imfi.kspu.ru>");
 MODULE_DESCRIPTION("TI AR7 ethernet driver (CPMAC)");
index 32636a1d62a5d25cfe3cc754e68543e39eeb5c28..805076c54f1b0cfbba1f780453c7e4c797c87a5a 100644 (file)
@@ -34,7 +34,7 @@
 #include <linux/slab.h>
 #include <net/neighbour.h>
 #include <linux/notifier.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/proc_fs.h>
 #include <linux/if_vlan.h>
 #include <net/netevent.h>
index fd3eb07e3f40a5bb093307a1dab7c21f3bef338e..7a12d52ed4fc0e48cc5d775ce67f0af2c1fccd61 100644 (file)
@@ -34,7 +34,7 @@
 
 #include <linux/spinlock.h>
 #include "t3cdev.h"
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 enum {
        L2T_STATE_VALID,        /* entry is up to date */
index be55e9ae74d18caeadfc8f6d2e6ca663ef773692..705713b56636d5162b7992d1febf085ac06817f8 100644 (file)
@@ -33,7 +33,7 @@
 #define _T3CDEV_H_
 
 #include <linux/list.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/netdevice.h>
 #include <linux/proc_fs.h>
 #include <linux/skbuff.h>
index 1b48c0170145a04abe457d10ac0cb326f17d1518..b1d39b8d141af94d343a19689459d1914628d7f9 100644 (file)
@@ -38,7 +38,7 @@
 #include <linux/cache.h>
 #include <linux/spinlock.h>
 #include <linux/skbuff.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 /* CPL message priority levels */
 enum {
index 7bd8f42378ff19b3b659092fcf98de8c31c60bce..02b31d0c6410af48f292e244273101943dc3560a 100644 (file)
@@ -37,7 +37,7 @@
 
 #include <linux/spinlock.h>
 #include <linux/if_ether.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 struct adapter;
 struct l2t_data;
index 0d283781bc5e54a72d72a608b667f0e067b6d680..2a5a34d2d67b9cc9838a851dc9656d25d311fb7c 100644 (file)
@@ -36,7 +36,7 @@
 #include <linux/tcp.h>
 #include <linux/semaphore.h>
 #include <linux/compat.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #define SIXPACK_VERSION    "Revision: 0.3.0"
 
index 52b14256e2c0818be269f34e7e9475dfc2ec1470..ce555d9ac02ceadb2d69697c3312b2774a9c0cc8 100644 (file)
@@ -36,7 +36,7 @@
 #include <linux/rtnetlink.h>
 #include <linux/sockios.h>
 #include <linux/workqueue.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/dma.h>
 #include <asm/io.h>
 #include <asm/irq.h>
index 838c5b67376749a67e1a8f5ef96fe34f21c9b0bd..ba99af05bf62744148a4d33d008c04ddece97a98 100644 (file)
@@ -43,7 +43,7 @@
 #include <linux/ipv6.h>
 #include <linux/slab.h>
 #include <asm/hvcall.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/vio.h>
 #include <asm/iommu.h>
 #include <asm/firmware.h>
index a47595760751400766499e772ca63cbb3bb9b0c5..3cbda0851f8373a406da78bc267da2da15f014fa 100644 (file)
@@ -33,7 +33,7 @@
 #include <linux/timer.h>
 #include <linux/workqueue.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/io.h>
 #include <asm/irq.h>
 #include <asm/uaccess.h>
index 4609bc0e2f563104065e56f119f9f7a509f45e40..10e5d985afa3f584cee497c91d5ceea3b81a014d 100644 (file)
@@ -48,7 +48,7 @@
 #include <linux/slab.h>
 #include <asm/unaligned.h>
 #include <net/slhc_vj.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include <linux/nsproxy.h>
 #include <net/net_namespace.h>
index 5eacc653a94db5228fba9961b4d4dc40af9943d6..c421a61418543dff5891023f44b6a8ff070f9dc3 100644 (file)
 #include <linux/netdevice.h>
 #include <linux/completion.h>
 #include <linux/rwsem.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <net/wimax.h>
 #include <linux/wimax/i2400m.h>
 #include <asm/byteorder.h>
index 17a130d18dc9a70c33dc1a5150c14a721ab98d85..a610a352102aebf3d9d5136cf0e4abd215bec782 100644 (file)
@@ -8,7 +8,7 @@
 #include <linux/stringify.h>
 #include <linux/netdevice.h>
 #include <linux/pci.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/io.h>
 
 #include <linux/ssb/ssb.h>
index f89c34226288c109aa72dad5eb507773e2b67816..686941c242fc6aa8a1dfa00623435253d6352220 100644 (file)
@@ -5,7 +5,7 @@
 #include <linux/spinlock.h>
 #include <linux/workqueue.h>
 #include <linux/linkage.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include "b43legacy.h"
 
index 0b54e46c3c1413a8453f473f211c7cb010ac0851..38b6fc028984d91dcbb8662083aad0bdbcf9f508 100644 (file)
@@ -10,7 +10,7 @@
 #ifndef OPROFILE_STATS_H
 #define OPROFILE_STATS_H
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 struct oprofile_stat_struct {
        atomic_t sample_lost_no_mm;
index d703e73fffa7cc5cf334dbd003c7334a9bec42b1..3fadf2f135e81802345b6f2fd89d96c60a417097 100644 (file)
@@ -32,7 +32,7 @@
 #include <linux/pci_hotplug.h>
 #include <linux/init.h>
 #include <linux/interrupt.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/delay.h>
 #include <linux/kthread.h>
 #include "cpci_hotplug.h"
index 492b7d807fe8f7a17eafcbe7aa3b9bbeb4fbd89d..6fa215a38615df05fa40549ce9354daaf7c0ce67 100644 (file)
@@ -16,7 +16,7 @@
 #include <xen/interface/io/pciif.h>
 #include <asm/xen/pci.h>
 #include <linux/interrupt.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/workqueue.h>
 #include <linux/bitops.h>
 #include <linux/time.h>
index 77f778b7b0708e81ea7acfda7913c733cff2a1f2..16c5208c3dc787c8115941fba4895b305f35760c 100644 (file)
@@ -21,7 +21,7 @@
 #include <linux/slab.h>
 
 #include <asm/uaccess.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/ebcdic.h>
 
 #include "dasd_int.h"
index 05909a7df8b30df91009c01146acae763f110da4..a90a02c28d6a1d2c75ecbb6d287e82950fe1785d 100644 (file)
@@ -13,7 +13,7 @@
 #include <linux/smp.h>
 #include <linux/init.h>
 #include <linux/reboot.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/ptrace.h>
 #include <asm/sigp.h>
 #include <asm/smp.h>
index c837d7419a6a974b55383be923e4e4939c00bb62..524d988d89dd4c064cef8839370c692930d12352 100644 (file)
@@ -21,7 +21,7 @@
 #include <linux/types.h>
 #include <linux/interrupt.h>
 #include <linux/spinlock.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/uaccess.h>
 #include <asm/cpcmd.h>
 #include <asm/debug.h>
index 7e297c7bb5fffe7ed6b719279923efb098c98b71..0b7245c72d5e290aeda9cd16ab1fabb681f784b2 100644 (file)
@@ -2,7 +2,7 @@
 #define S390_DEVICE_H
 
 #include <asm/ccwdev.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/wait.h>
 #include <linux/notifier.h>
 #include "io_sch.h"
index 570d4da10696177e6a05ed78dbeb459617d8f49c..e58169c32474f41b436d3ad8259efed71af3121e 100644 (file)
@@ -15,7 +15,7 @@
 #include <linux/delay.h>
 #include <linux/gfp.h>
 #include <linux/kernel_stat.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/debug.h>
 #include <asm/qdio.h>
 
index 68be6e1571261a23cf0eeabdb96a4f781590397c..2a1d4dfaf859ac9e6899a5efb7c31422238b18d4 100644 (file)
@@ -9,7 +9,7 @@
 #include <linux/io.h>
 #include <linux/slab.h>
 #include <linux/kernel_stat.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/debug.h>
 #include <asm/qdio.h>
 #include <asm/airq.h>
index f8134a44cefaed4b94714bbd18b4f7ecdd2f99a7..b77ae519d79c4eea8c6d87a1e08609dc70ae0276 100644 (file)
@@ -41,7 +41,7 @@
 #include <linux/mutex.h>
 #include <asm/reset.h>
 #include <asm/airq.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/system.h>
 #include <asm/isc.h>
 #include <linux/hrtimer.h>
index 8e65447f76b7bb66874c51fbe1ef2538f35df042..88ad33ed5d385cbea284ce66bc7bafda842b846a 100644 (file)
@@ -36,7 +36,7 @@
 #include <linux/seq_file.h>
 #include <linux/compat.h>
 #include <linux/slab.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/uaccess.h>
 #include <linux/hw_random.h>
 
index 2176d00b395e9cdb6b3adb303a661b9bacd9f9fe..da171b5f3996c75e73f453281eb5756328722630 100644 (file)
@@ -30,7 +30,7 @@
 #include <linux/slab.h>
 #include <linux/init.h>
 #include <linux/err.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/uaccess.h>
 
 #include "ap_bus.h"
index 44253fdd41364436a6057d1100bba3f0a93892fe..eb313c3fb2d173cd431faa2c10f9fa4bf8a72c3c 100644 (file)
@@ -32,7 +32,7 @@
 #include <linux/fs.h>
 #include <linux/proc_fs.h>
 #include <linux/compat.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/uaccess.h>
 
 #include "ap_bus.h"
index 1afb69c75fea7a60dd67208b99f61b5f7793d693..d84816f144dfdcfc061ada8e2aad76b8842318f0 100644 (file)
@@ -30,7 +30,7 @@
 #include <linux/slab.h>
 #include <linux/init.h>
 #include <linux/err.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/uaccess.h>
 
 #include "ap_bus.h"
index aa4c050a5694926612594b3673b027d23c649024..bdbdbe192993a8562f0ec5034e7a7af6cbf59928 100644 (file)
@@ -30,7 +30,7 @@
 #include <linux/init.h>
 #include <linux/gfp.h>
 #include <linux/err.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/uaccess.h>
 
 #include "ap_bus.h"
index 4f85eb725f4f9c7df68101d74b4123b3eb8e3695..dd4737808e06c9f50855f970792b8dc8b4d3d725 100644 (file)
@@ -31,7 +31,7 @@
 #include <linux/err.h>
 #include <linux/delay.h>
 #include <linux/slab.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/uaccess.h>
 
 #include "ap_bus.h"
index 1e8b235d95b597c026f235e34a116b627757e756..a4510cf590341494b28aae9c7b2df184057b5a32 100644 (file)
@@ -8,7 +8,7 @@
 #include <linux/slab.h>
 #include <linux/sched.h>
 #include <linux/string.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 /**
  * Define this to get debugging messages.
index 2a4991d6d4d59a297b9e9599bd1a72eac70ee24d..7cac873c73837ac668c4f4985c2c4a06061ad547 100644 (file)
@@ -13,7 +13,7 @@
 #include <linux/slab.h>
 #include <scsi/fc/fc_fcp.h>
 #include <scsi/scsi_eh.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include "zfcp_ext.h"
 #include "zfcp_dbf.h"
 #include "zfcp_fc.h"
index 740da4465447f68733b489ca775321dba7d357d0..965a1fccd66a8898270d45756468e868a4f8acc5 100644 (file)
@@ -16,7 +16,7 @@
 #include <linux/mutex.h>
 #include <linux/of.h>
 #include <linux/of_device.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/uaccess.h>               /* put_/get_user                        */
 #include <asm/io.h>
 
index 179ad77f6cc9d1039ba9adcea328292c7e72dc22..bd9e31e16249a8b633976f3c01d261789544ecff 100644 (file)
@@ -22,7 +22,7 @@
 #include <linux/i2o-dev.h>
 
 #include <linux/notifier.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 
 /*
index 6bba23a2630339fde5e29976c220d771dff0ba54..c6f99b1d23835304b82aba002aca8f0db003418c 100644 (file)
@@ -46,7 +46,7 @@
 #include <linux/cciss_ioctl.h>
 #include <linux/string.h>
 #include <linux/bitmap.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/kthread.h>
 #include "hpsa_cmd.h"
 #include "hpsa.h"
index aa05e661d113d11989dcc35dd2a5948b6edf230f..b97c8ab0c20e744f5b37ffe6e5e549381ada7c05 100644 (file)
@@ -54,7 +54,7 @@
 #include <scsi/libsas.h>
 #include <scsi/scsi_tcq.h>
 #include <scsi/sas_ata.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include "pm8001_defs.h"
 
 #define DRV_NAME               "pm8001"
index 0f22f0f47446baf833c36e29a99105d639f3dcb5..1a7c19ae766f3968f4f9bc9b575eb0785e6c70d4 100644 (file)
@@ -42,7 +42,7 @@
 #include <net/xfrm.h>
 #endif /* CONFIG_XFRM */
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include <asm/octeon/octeon.h>
 
index 6227571149f5a5975e0cdb9d56c4317dcc63893b..b445cd63f901dc4299d55eef54c6675151d8387a 100644 (file)
@@ -38,7 +38,7 @@
 #include <net/xfrm.h>
 #endif /* CONFIG_XFRM */
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include <asm/octeon/octeon.h>
 
index fd59b093dd4d521d6e93d39285a27873683c9d57..17c06bd6cc91270986d2541c580b9d83e2713165 100644 (file)
@@ -29,7 +29,7 @@
 #include <linux/wait.h>
 #include <linux/delay.h>
 #include <asm/io.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/videodev2.h>
 #include <media/v4l2-dev.h>
 #include <media/videobuf-core.h>
index 1a38896f4331ea07f4e8078a578d51a7d64a228f..a2f31c69d12e89dbe746d062e54ed4ddaf45e681 100644 (file)
@@ -18,7 +18,7 @@
 #define _HOST_OS_H_
 
 #include <asm/system.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/semaphore.h>
 #include <linux/uaccess.h>
 #include <linux/irq.h>
index eeedf01863651172fd53d31a806ed2363817579c..07d835b3b7068de21a3bed2f6efee8f637cacc9c 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <linux/timer.h>
 #include <linux/types.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include "localpara.h"
 #include "mac_structures.h"
index eb274ffdd1baf9ec6655bc1527cd94adaef043df..dc79faa4029ff8cf30bf271c061e127485fd6e75 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <linux/spinlock.h>
 #include <linux/types.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 struct hw_data;
 
index 03c285bb2f182681c9038a3d535ad3962b733d30..3a997760ec3233ea44d7886a8e343cd54131f8c7 100644 (file)
@@ -25,7 +25,7 @@
 #include <linux/tty.h>
 #include <linux/tty_driver.h>
 #include <linux/tty_flip.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #define pr_init(fmt, args...) ({ static const __initconst char __fmt[] = fmt; printk(__fmt, ## args); })
 
index 13043e8d37fe8ffc4ffc6bb681c8f56009ebbe4b..6a1241c7f841762dceb4d564305ffffe1bddc69a 100644 (file)
@@ -83,7 +83,7 @@
 #include <linux/wait.h>
 #include <linux/pci.h>
 #include <linux/uaccess.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/unaligned.h>
 #include <linux/bitops.h>
 #include <linux/spinlock.h>
index 57421d776329ab83436efd5ecb41f8d1f830aabd..ddc487a2d42f5d0fa1dc84e6af6d0ef69f81e75b 100644 (file)
@@ -48,7 +48,7 @@
 #include <linux/sysrq.h>
 #include <linux/tty.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/bootinfo.h>
 #include <asm/io.h>
 #include <asm/system.h>
index ea2340b814e9392e2c5d1e693e1a14bbbd4b694f..6bc2e3f876f4175bb4bedcd4db38c5895d7cba1f 100644 (file)
@@ -39,7 +39,7 @@
 #include <linux/tty.h>
 #include <linux/types.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/io.h>
 #include <asm/war.h>
 
index 1a7fd3e703155b68ec98c11276730d8a361b8f80..0aebd7121b56d54c36a07d3837550d0237b01ef9 100644 (file)
@@ -65,7 +65,7 @@
 #include <linux/tty.h>
 #include <linux/types.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/system.h>
 
 #include <asm/dec/interrupts.h>
index 02a02700b51d73b1891cb6fe2480158ef89f4799..a9a4eade7e80aab6902b037c77ec3a17c0895445 100644 (file)
@@ -12,7 +12,7 @@
 #include <linux/slab.h>
 #include <linux/kernel.h>
 #include <linux/device.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include "u_audio.h"
 
index 8f3eae90919fe8e5d94ea5875ddb6c738b25a498..3ea4666be3d0dc7071b3dc20abf62f29eadc779c 100644 (file)
@@ -29,7 +29,7 @@
 #include <linux/device.h>
 #include <linux/etherdevice.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include "u_ether.h"
 #include "rndis.h"
index f7395ac5dc17e616ef9812f1aa58f6d4b775cc2a..aa0ad34e0f1ffde669d31c4acc53e7621be51274 100644 (file)
@@ -19,7 +19,7 @@
 #include <linux/videodev2.h>
 #include <linux/vmalloc.h>
 #include <linux/wait.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include "uvc.h"
 
index a0037961e5bdd76709666599e5cda7e295b0c9c0..27e209a7222fba7fcb6ab7cc7133554c4a47a94e 100644 (file)
 #include <linux/usb.h>
 #include <linux/proc_fs.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/blkdev.h>
 #include "../../scsi/scsi.h"
 #include <scsi/scsi_host.h>
index 68ab460a735c15e94c9cd04600a9e499582b3200..ac0d75a9005a1528bec001350e3e97da162954fe 100644 (file)
@@ -29,7 +29,7 @@
 #include <linux/backlight.h>
 #include <linux/timer.h>
 #include <linux/workqueue.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #define APPLE_VENDOR_ID                0x05AC
 
index b0a7a9e909a4fe8d7568b5f162a1c2cb24404bd0..1a49ca9c8ea5b85992e5dad5e2a859561ab85337 100644 (file)
@@ -34,7 +34,7 @@
 #include <linux/module.h>
 #include <linux/spinlock.h>
 #include <linux/uaccess.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/usb.h>
 #include <linux/usb/serial.h>
 
index ca80171f42c64483871eeec79bd8d4fda09e1fbf..2acc7f504c516e60459bcba34a25907180996fbf 100644 (file)
@@ -58,7 +58,7 @@
  *  destination address.
  */
 #include <linux/init.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/bitmap.h>
 #include <linux/slab.h>
 
index 14c9abf0d80025fd863460c1bd935d5b49f88c26..a801e2821d0387e2fc825e4a124bf2413f16d181 100644 (file)
@@ -11,7 +11,7 @@
 #include <linux/uio.h>
 #include <linux/virtio_config.h>
 #include <linux/virtio_ring.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 /* This is for zerocopy, used buffer len is set to 1 when lower device DMA
  * done */
index 019dbd3f12b247d3fec1fb4836dd8f36cf5a3819..b048417247e8f1e54268871932d68e23cdb3a9dd 100644 (file)
@@ -24,7 +24,7 @@
 #include <linux/backlight.h>
 #include <linux/gpio.h>
 #include <video/sh_mobile_lcdc.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include "sh_mobile_lcdcfb.h"
 #include "sh_mobile_meram.h"
index 7491abfcf1fc4c8f882332ffa83f143069fc4ec8..43d11ec197fc6368ff862abc6fc8fe6959a0fa4f 100644 (file)
@@ -31,7 +31,7 @@
 
 #include <linux/kernel.h>
 #include <linux/pci.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/mutex.h>
 
 #define VML_DEVICE_GPU 0x5002
index 1550431ccb6ade0b3b1ee556d3ea809f1c125132..334d1ccf9c922618da2b5addab4bd46015263037 100644 (file)
@@ -20,7 +20,7 @@
  */
 
 #include <asm/types.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/io.h>
 
 #include <linux/delay.h>
index 10606c822756a3c7ab9ba6de5923a263dab67150..6c136c19e982ad98246511cb019d5680b8889dfb 100644 (file)
@@ -33,7 +33,7 @@
 #include <linux/kthread.h>
 #include <linux/freezer.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include "w1.h"
 #include "w1_log.h"
index 89a0b1f2794b614e87ac8e719dc3b624dfd5ce1d..98a1ac0f4693a634898c22d00a9cf3eb89219b57 100644 (file)
@@ -24,7 +24,7 @@
 
 #include <linux/types.h>
 #include <linux/device.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #define W1_FAMILY_DEFAULT      0
 #define W1_FAMILY_SMEM_01      0x01
index ba4386066a42f28d2d813d377123d3bd978b839d..1abdc0454c54ff847d3d5159583f396fb2c6baff 100644 (file)
@@ -43,7 +43,7 @@
 #include <linux/signal.h>
 #include <linux/sfi.h>
 #include <asm/irq.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/intel_scu_ipc.h>
 #include <asm/apb_timer.h>
 #include <asm/mrst.h>
index ff11504c376e56848f7f7d180c09c69bd3e179b4..93ac58953122c67d55e63a6056b14357d8db8cfb 100644 (file)
@@ -29,7 +29,7 @@
 #include <linux/watchdog.h>
 #include <linux/io.h>
 #include <linux/uaccess.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/system.h>
 
 #define SBC7240_PREFIX "sbc7240_wdt: "
index 8d27af4bd8b99f00f073d18125589fa39e2269fa..7083d08b2a212bda501d7d3f7e08fe9c18bfe3a0 100644 (file)
@@ -25,7 +25,7 @@
 #include <linux/mutex.h>
 #include <linux/list.h>
 #include <linux/wait.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include "ctree.h"
 
index 01d2d9ef609cb1619ee4159808699559ee0fe5d5..44a360ca80464c78ace80bf547efe4b7b1f42d3a 100644 (file)
@@ -35,7 +35,7 @@
 #include <linux/buffer_head.h>
 #include <linux/rwsem.h>
 #include <linux/uio.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 /*
  * How many user pages to map in one call to get_user_pages().  This determines
index f9cfd168fbe2d4d408800e964268a8d40a3ec9ac..fe047d966dc5d9af1430dbb7596a511ce57131cb 100644 (file)
@@ -37,7 +37,7 @@
 #include <asm/system.h>
 #include <asm/io.h>
 #include <asm/mman.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 /*
  * LOCKING:
index 01e4c1e8e6b6badc81a659a8616694dc677310a7..c322794f7360c2065edc871a0fa91f2333ed6423 100644 (file)
@@ -25,7 +25,7 @@
 #include <linux/percpu.h>
 #include <linux/ima.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include "internal.h"
 
index 29e1ace7953d619b707e461e0da8a1ac61f6d167..8a139ff1919f922bdf20b3f2d933316a1560b5f8 100644 (file)
@@ -16,7 +16,7 @@
 #include <linux/gfs2_ondisk.h>
 #include <linux/rcupdate.h>
 #include <linux/rculist_bl.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include "gfs2.h"
 #include "incore.h"
index 76f856e284e4069f710dbabb31c8ad55f1420998..7cf6cafcc007d8a5350aee6eae30647dceaab802 100644 (file)
@@ -6,7 +6,7 @@
 
 #include <linux/completion.h>
 #include <linux/sunrpc/cache.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 /*
  * Deferred request handling
index b35d25b98da6d173405bd314cb9cd482be4b0b0a..1940f1a56a5fe059cac63144a4f17cdbf26ab1da 100644 (file)
@@ -53,7 +53,7 @@
 
 #include <asm/system.h>
 #include <asm/uaccess.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include "internal.h"
 #include "iostat.h"
index d309f38449cbb6f2e3a8a8cbc9a903944679bd39..63fc294a469268d06d9ae1cc9f3d19f3ba95f695 100644 (file)
@@ -26,7 +26,7 @@
 #include <linux/fsnotify_backend.h>
 #include "fsnotify.h"
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 /*
  * Final freeing of a group
index 07ea8d3e6ea2d2fc6f9c984d2077ac439c3453ac..b13c00ac48eb377086f1928d8ff0cffae3b8cc44 100644 (file)
@@ -23,7 +23,7 @@
 #include <linux/mutex.h>
 #include <linux/spinlock.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include <linux/fsnotify_backend.h>
 #include "fsnotify.h"
index 252ab1f6452b3344608839daa925f6c8382354b8..e14587d55689dae3cedccd1d2afeb1242ab0947c 100644 (file)
@@ -92,7 +92,7 @@
 #include <linux/spinlock.h>
 #include <linux/srcu.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include <linux/fsnotify_backend.h>
 #include "fsnotify.h"
index f39260f8f8656e42feac01e728497cd05650d881..ee188158a224ad45c5d494319bc7158ba75ed06f 100644 (file)
@@ -43,7 +43,7 @@
 #include <linux/slab.h>
 #include <linux/spinlock.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include <linux/fsnotify_backend.h>
 #include "fsnotify.h"
index e86577d6c5c3d99e8377798dc64a950d51543540..778fe6cae3b0949ea671246efe52bee6cf158985 100644 (file)
@@ -24,7 +24,7 @@
 #include <linux/mutex.h>
 #include <linux/spinlock.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include <linux/fsnotify_backend.h>
 #include "fsnotify.h"
index 2dabf813456ca757dbec43386f2320d907600baa..fe8e7e9288896ca4fa6f0cfa9d4f8a4c8f1639be 100644 (file)
@@ -24,7 +24,7 @@
 #ifndef _LINUX_NTFS_INODE_H
 #define _LINUX_NTFS_INODE_H
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include <linux/fs.h>
 #include <linux/list.h>
index a6227d219e93028f1bb0adc19002b3e12a89c8ef..d43729a760e26d1a6acc1024fa33fb2efdaa5d33 100644 (file)
@@ -14,7 +14,7 @@
 
 #include <linux/kernel.h>
 #include <linux/slab.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/fs.h>
 #include <linux/sched.h>
 #include <linux/posix_acl.h>
index ed257d1415687f50dc84abad0089be090a2d3f8c..586174168e2ac8818fc51397223fe683b4afa189 100644 (file)
@@ -10,7 +10,7 @@
 #include <linux/seq_file.h>
 #include <linux/swap.h>
 #include <linux/vmstat.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/page.h>
 #include <asm/pgtable.h>
 #include "internal.h"
index 2ce1be9f62918c38a52edf3d8424af1e4c48d25a..f72403c4b51a6a6c01b3f587202a48a1165c5da5 100644 (file)
@@ -59,7 +59,7 @@
 #include <linux/ctype.h>
 #include <linux/sched.h>
 #include <asm/system.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/div64.h>
 #include <asm/acpi.h>
 #include <linux/slab.h>
index e994197f84b73de6432f8a849519ff332b4c6bde..7f84414c5f533e2d70f3f59499b8a1e62b17919e 100644 (file)
@@ -138,8 +138,6 @@ static inline int atomic_add_unless(atomic_t *v, int a, int u)
   return c != u;
 }
 
-#define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)
-
 static inline void atomic_clear_mask(unsigned long mask, unsigned long *addr)
 {
        unsigned long flags;
index c8a5d68541d75c0fd76aeabac248760c3587def7..9ceb03b4f4661d3ade8c0ca9fbe98ac87f31bc89 100644 (file)
@@ -2,7 +2,7 @@
 #define _ASM_GENERIC_LOCAL_H
 
 #include <linux/percpu.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/types.h>
 
 /*
index 02ac760c1a8ba5a3d9fc69168b12127006706f6b..5980002b8b7bee3db8bc7ab84f6c5a9de128b30c 100644 (file)
@@ -55,7 +55,7 @@ typedef struct {
 
 #else /* BITS_PER_LONG != 64 */
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 /* Don't use typedef: don't want them to be mixed with atomic_t's. */
 typedef struct {
index 81ba0b0b891a9ad298354ec87856707c0f61cb79..2e7f0c941b5d2e7ae19877a265d00539ae26af44 100644 (file)
@@ -51,7 +51,7 @@
 
 #include "ttm/ttm_object.h"
 #include <linux/wait.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 /**
  * struct ttm_lock
index 7a8db41552813ff15e6739943ad401cfe5f56b3c..2dcb72bff4b614c44999d4c9d3bf607b3f1b19d0 100644 (file)
@@ -7,7 +7,7 @@
 #include <linux/uio.h>
 #include <linux/rcupdate.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #define AIO_MAXSEGS            4
 #define AIO_KIOGRP_NR_ATOMIC   8
index 381f4cec8260289dd835e0a971299af332102d44..49a83ca900ba7209926b89e8c98789703ee23c00 100644 (file)
@@ -220,7 +220,7 @@ struct atm_cirange {
 #include <linux/skbuff.h> /* struct sk_buff */
 #include <linux/uio.h>
 #include <net/sock.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #ifdef CONFIG_PROC_FS
 #include <linux/proc_fs.h>
index bc6615d4132b288213a65843f7a65e6c1be6e1bf..66fed6364122b2f47b78b1cd5fef0fd2f1f53b33 100644 (file)
@@ -2,6 +2,15 @@
 #define _LINUX_ATOMIC_H
 #include <asm/atomic.h>
 
+/**
+ * atomic_inc_not_zero - increment unless the number is zero
+ * @v: pointer of type atomic_t
+ *
+ * Atomically increments @v by 1, so long as @v is non-zero.
+ * Returns non-zero if @v was non-zero, and zero otherwise.
+ */
+#define atomic_inc_not_zero(v)         atomic_add_unless((v), 1, 0)
+
 /**
  * atomic_inc_not_zero_hint - increment if not null
  * @v: pointer of type atomic_t
index a008982e7c0817295b01a516b81df477bd2fb957..3b2f9cb829864753b810bd87e15e16cafc74215b 100644 (file)
@@ -16,7 +16,7 @@
 #include <linux/sched.h>
 #include <linux/timer.h>
 #include <linux/writeback.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 struct page;
 struct device;
index 564d997e216887f13c18d0b65cfafaf6aba26e71..ac4d9f8b52e9f7c23e7f8e2d8093e896ec451768 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <linux/kernel.h>
 #include <linux/preempt.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 /*
  *  bit-based spin_lock()
index 503c8a6b30792d8e725a9233be6298e801e439ac..458f497738a445ec96bf2153f2e0f99ee49e3e8c 100644 (file)
@@ -12,7 +12,7 @@
 #include <linux/linkage.h>
 #include <linux/pagemap.h>
 #include <linux/wait.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #ifdef CONFIG_BLOCK
 
index 645778ad899b275977c84702a1adf991e0459e1a..3081c58d696e8314113a9c60c82afdf25c073318 100644 (file)
@@ -42,7 +42,7 @@
 #include <linux/mutex.h>
 #include <linux/err.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #define CONFIGFS_ITEM_NAME_LEN 20
 
index f696bccd48cb614a1d459245c6ea8413b0299d0f..0c69ad825b39f656d3599d1c79dc16661772057f 100644 (file)
@@ -75,7 +75,7 @@ struct cn_msg {
 
 #ifdef __KERNEL__
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include <linux/list.h>
 #include <linux/workqueue.h>
index f240f2fa0197f4ea44fc85ffdd94ac8d51cd5f6e..48e82af1159b60065fd3081e46c236495c2f4ff2 100644 (file)
@@ -16,7 +16,7 @@
 #include <linux/init.h>
 #include <linux/key.h>
 #include <linux/selinux.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 struct user_struct;
 struct cred;
index a6a7a1c83f54c1f7430b7d4306f31aaabc126eaa..e5e468e9133d645411fe18314bb24d81e8701471 100644 (file)
@@ -17,7 +17,7 @@
 #ifndef _LINUX_CRYPTO_H
 #define _LINUX_CRYPTO_H
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/list.h>
index 3f22d8d6d8a3b0b24af2cfc5abbc65d66ac7dd9e..d37d2a79309985c2cd7c0d119d52dd0a51cecde8 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef __LINUX_DCACHE_H
 #define __LINUX_DCACHE_H
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/list.h>
 #include <linux/rculist.h>
 #include <linux/rculist_bl.h>
index 2833452ea01c8ecec5207a7a8631da3f2b439fa3..5033fb88c107f6ec5189cea9b642a3d00eb1e93a 100644 (file)
@@ -2,7 +2,7 @@
 #define __LINUX_DEBUG_LOCKING_H
 
 #include <linux/kernel.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/system.h>
 
 struct task_struct;
index 160d4ddb2499c8736cb05e0952703775b94fbb0a..c20dfbfc49b425b39794011ab0fed4d226c4ad50 100644 (file)
@@ -22,7 +22,7 @@
 #include <linux/types.h>
 #include <linux/module.h>
 #include <linux/pm.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/device.h>
 
 struct device;
index 36c66443bdfd260def7dd6e9724f751dd17c7cc6..4a73257b47d0cca22e1f33cdb47a8075eb1a358c 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef _LINUX_EDAC_H_
 #define _LINUX_EDAC_H_
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/sysdev.h>
 
 #define EDAC_OPSTATE_INVAL     -1
index a842db6383809cf41522424350573205f47226fd..3ff060ac7810586d93685942195dc386fdcc0f69 100644 (file)
@@ -5,7 +5,7 @@
 
 #include <linux/types.h>
 #include <linux/debugfs.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 /*
  * For explanation of the elements of this struct, see
index df7e3cf82e97135edf6338151d18160cb7b7c928..82163c4b32c9fa89cd2869e369f0a5c39239c5c1 100644 (file)
@@ -13,7 +13,7 @@
 #include <linux/init.h>
 #include <linux/fs.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 /*
  * The default fd array needs to be at least BITS_PER_LONG,
index 9ee3f9fb0b4a5ee94f23242219ee5ea95cbf1274..741956fa5bfdcc371ab712ade0210fe5de69fe69 100644 (file)
@@ -9,7 +9,7 @@
 #include <linux/types.h>
 
 #ifdef __KERNEL__
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #endif
 
 /*
index 5e6f42789afec7b20d6aeec2fc9e0d3f61a43caa..84ccf8e04fa641525db86b85b2178a13bc6e7b4f 100644 (file)
@@ -14,7 +14,7 @@
 #include <linux/types.h>
 #include <linux/workqueue.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/byteorder.h>
 
 #define fw_notify(s, args...) printk(KERN_NOTICE KBUILD_MODNAME ": " s, ## args)
index 69ad89b504895431265cbb106b53cc8be543089b..91d0e0a34ef3185a6051d8394cab63dfb76a04cb 100644 (file)
@@ -16,7 +16,7 @@
 #include <linux/spinlock.h>
 #include <linux/types.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 /*
  * IN_* from inotfy.h lines up EXACTLY with FS_*, this is so we can easily
index f6efed0039edfdb06cbe1430588e51bf2db07aca..a103732b75882322c5f451942b93199f64fb9acc 100644 (file)
@@ -17,7 +17,7 @@
 #include <linux/kref.h>
 #include <linux/workqueue.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/ptrace.h>
 #include <asm/system.h>
 #include <trace/events/irq.h>
index 83e745f3ead76b225d52a92608819c47d8a8c209..66f23dc5e76a636bf2ed54542c6565fc82dbc6a4 100644 (file)
@@ -54,7 +54,7 @@ extern void jump_label_apply_nops(struct module *mod);
 
 #else
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #define JUMP_LABEL_INIT {ATOMIC_INIT(0)}
 
index aadff7cc2b8429a4ae084bc6ad0ae126ec5df924..529d9a0c75a5bb26249f2d766800e58a1b1440da 100644 (file)
@@ -16,7 +16,7 @@
 #ifdef CONFIG_KGDB_KDB
 #include <linux/init.h>
 #include <linux/sched.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #define KDB_POLL_FUNC_MAX      5
 extern int kdb_poll_idx;
index 6ea4eebd3467b220f19bc5cd6e77214096ca2278..183a6af7715d341bb5ffa9c8ebb3428d44f93cc8 100644 (file)
@@ -21,7 +21,7 @@
 #include <linux/rcupdate.h>
 #include <linux/sysctl.h>
 #include <linux/rwsem.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #ifdef __KERNEL__
 
index 10ca03d0a250e280682479c4228536120c2cee4f..fa391835508d9acef3a20cf2d76468a679e35cba 100644 (file)
@@ -16,7 +16,7 @@
 #include <linux/serial_8250.h>
 #include <linux/linkage.h>
 #include <linux/init.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #ifdef CONFIG_HAVE_ARCH_KGDB
 #include <asm/kgdb.h>
 #endif
index 9229b64ee3aadcc2013e75691d8638404481defa..668729cc0fe9d4774c78797a521a67d97cdd2b69 100644 (file)
@@ -25,7 +25,7 @@
 #include <linux/kobject_ns.h>
 #include <linux/kernel.h>
 #include <linux/wait.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #define UEVENT_HELPER_PATH_LEN         256
 #define UEVENT_NUM_ENVP                        32      /* number of env pointers */
index 387329e02303985949d784b05450fab7e368f4a0..53ef894bfa05aa26e9cb42bd24a002de6e299b4c 100644 (file)
@@ -37,7 +37,7 @@
 #include <linux/completion.h>
 #include <linux/radix-tree.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #define MAX_MSIX_P_PORT                17
 #define MAX_MSIX               64
index 9872d6ca58ae9a7b88dcc97387f86a434a633db5..8b74e9b1d0ad53911cd15e31891be149bc7932af 100644 (file)
@@ -14,7 +14,7 @@
 #include <linux/mm.h>
 #include <linux/percpu_counter.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 extern int sysctl_overcommit_memory;
 extern int sysctl_overcommit_ratio;
index 0a2d3d620febf5a731301191f3dd3168dfaa2c77..be1ac8d7789be37b21dd5fdf72832aea621926bd 100644 (file)
@@ -16,7 +16,7 @@
 #include <linux/nodemask.h>
 #include <linux/pageblock-flags.h>
 #include <generated/bounds.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/page.h>
 
 /* Free memory management - zoned buddy allocator.  */
index 604f122a23261bdc81ed92c8608c31f3e5cfa627..33fe53d78110d3444994ed6f1f38e9eeda63ec0c 100644 (file)
@@ -14,7 +14,7 @@
 #include <linux/nodemask.h>
 #include <linux/spinlock.h>
 #include <linux/seqlock.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 struct super_block;
 struct vfsmount;
index 7f87217e9d1f65dd50ebcfd98e08391d7f65a7d2..9121595a8ebfe14a1d2330c79454f4b53a088669 100644 (file)
@@ -15,7 +15,7 @@
 #include <linux/linkage.h>
 #include <linux/lockdep.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 /*
  * Simple, straightforward mutexes with strict semantics:
index ea6f4aa479d4e3046bab6e9ed0500a7ffe21979b..2ed0b6cf11c56de2aeb568bc6d1bd6201d4b75ce 100644 (file)
@@ -34,7 +34,7 @@
 #include <linux/pm_qos_params.h>
 #include <linux/timer.h>
 #include <linux/delay.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/cache.h>
 #include <asm/byteorder.h>
 
index 87694ca86914e379a098096fdd6989df71732a8f..08c444aa0411618aa426272f06768d6fa716f0d1 100644 (file)
@@ -7,7 +7,7 @@
 #include <linux/nfs_xdr.h>
 #include <linux/sunrpc/xprt.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 struct nfs4_session;
 struct nfs_iostats;
index 7f5cfd3b37dd4d9dfe11ebdb1db92fb840c61dd4..49c8727eeb570a8648092301d0736d7b9dfd242f 100644 (file)
@@ -18,7 +18,7 @@
 #include <linux/init.h>
 #include <linux/errno.h>
 #include <linux/printk.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
  
 /* Each escaped entry is prefixed by ESCAPE_CODE
  * then one of the following codes, then the
index 4e4203a96312608423d45a8c86ed99f48a1bfe74..3a5626df37cec41e50b02b2a822ee191501a2a32 100644 (file)
@@ -49,7 +49,7 @@
 #include <linux/compiler.h>
 #include <linux/errno.h>
 #include <linux/kobject.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/device.h>
 #include <linux/io.h>
 #include <linux/irqreturn.h>
index 3f2711ccf910e58a0993b115e1fa6cfbdeb9394b..245bafdafd5ec78e1461b7cbb5817714a28952ed 100644 (file)
@@ -509,7 +509,7 @@ struct perf_guest_info_callbacks {
 #include <linux/cpu.h>
 #include <linux/irq_work.h>
 #include <linux/jump_label.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/local.h>
 
 #define PERF_MAX_STACK_DEPTH           255
index 7da5fa845959ab3dc9c2a393d7336a318c113aeb..ad5186354d92402a6441f126896f592f476ddcdd 100644 (file)
@@ -26,7 +26,7 @@
 #include <linux/workqueue.h>
 #include <linux/mod_devicetable.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #define PHY_BASIC_FEATURES     (SUPPORTED_10baseT_Half | \
                                 SUPPORTED_10baseT_Full | \
index e7576cf9e32d7bf8cdc1bb50230a42fb80d184ad..650af6deaf8fa50e1b8e812e98346380958252e8 100644 (file)
@@ -5,7 +5,7 @@
 #include <linux/fs.h>
 #include <linux/spinlock.h>
 #include <linux/magic.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 struct net;
 struct completion;
index 313b7defc08861e17075b56bdc686f287e67307f..cb785569903759e054141b09e62e4a2c0442425f 100644 (file)
@@ -180,7 +180,7 @@ enum {
 #include <linux/dqblk_v1.h>
 #include <linux/dqblk_v2.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 typedef __kernel_uid32_t qid_t; /* Type in which we store ids in memory */
 typedef long long qsize_t;     /* Type in which we store sizes */
index 77950dfa0a9e84337b03886ea8d453725366a139..6a6741440cb763a7272577f095542bd5a6067cb2 100644 (file)
@@ -15,7 +15,7 @@
 #include <linux/spinlock.h>
 
 #include <asm/system.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 struct rw_semaphore;
 
index f2961afa2f6657e9bbf9c79cd25b0d2c2648d86d..1feb2de2ee57b430c7980ff6c2469548188c19a3 100644 (file)
@@ -77,7 +77,7 @@ struct  seminfo {
 #define SEMUSZ  20             /* sizeof struct sem_undo */
 
 #ifdef __KERNEL__
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/rcupdate.h>
 #include <linux/cache.h>
 
index a24218c9c84b1180cae114de3353f108a47f9f20..7b996ed86d5b823d1b92a0df82da033cafa4d6c3 100644 (file)
@@ -20,7 +20,7 @@
 #include <linux/time.h>
 #include <linux/cache.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/types.h>
 #include <linux/spinlock.h>
 #include <linux/net.h>
index 67ad11fcf88b56dc50759cb3138416ba63131e2a..de8832dd272bd7dd86aa0fa126926401e0165ac0 100644 (file)
@@ -58,7 +58,7 @@ struct sonet_stats {
 
 #ifdef __KERNEL__
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 struct k_sonet_stats {
 #define __HANDLE_ITEM(i) atomic_t i
index 0b22d51258e6839f3a7727e38ac09a994757b446..7df6c17b0281867241ffa64de8429f6ff84d5d17 100644 (file)
@@ -384,7 +384,7 @@ static inline void assert_spin_locked(spinlock_t *lock)
  * Pull the atomic_t declaration:
  * (asm-mips/atomic.h needs above definitions)
  */
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 /**
  * atomic_dec_and_lock - lock on reaching reference count zero
  * @atomic: the atomic counter
index 8521067ed4f7a60055eef1a390ee1f7564d99ebf..febc4dbec2cad59adc05d3f97e39c8098b78aea4 100644 (file)
@@ -15,7 +15,7 @@
 #include <linux/sunrpc/msg_prot.h>
 #include <linux/sunrpc/xdr.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/rcupdate.h>
 
 /* size of the nodename buffer */
index d1c79a9063973f1de0656ac16d1b974f765b5660..5efd8cef389ea1586c262121f3ba94970bdac6ef 100644 (file)
@@ -15,7 +15,7 @@
 
 #include <linux/kref.h>
 #include <linux/slab.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/proc_fs.h>
 
 /*
index a67fd734c73b0357a0b89ac2cbeb28a3c678c47f..697d6e69d61f9152f0590c127503ff19aab31a4e 100644 (file)
@@ -9,7 +9,7 @@
 #ifndef _LINUX_SUNRPC_TIMER_H
 #define _LINUX_SUNRPC_TIMER_H
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 struct rpc_rtt {
        unsigned long timeo;    /* default timeout value */
index 91d5fcc83116a937175c1d9d414fac73b60c041e..14d62490922e12bccc319a0827ec22a1d5c3a1b3 100644 (file)
@@ -9,7 +9,7 @@
 #include <linux/sched.h>
 #include <linux/node.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/page.h>
 
 struct notifier_block;
index e2696d76a59956eeea4bb3431fddc3b7ecbc4780..d7d2f2158142cf04f77aa8a93c382a0e2ef941db 100644 (file)
@@ -17,7 +17,7 @@
 #include <linux/list.h>
 #include <linux/lockdep.h>
 #include <linux/kobject_ns.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 struct kobject;
 struct module;
index bcd942fa611cadd855a15078bbdb78ed58ff5404..65efb92da996cecfcd1c3648e7ee4a450fe8dd01 100644 (file)
@@ -6,7 +6,7 @@
 #include <linux/mm.h>
 #include <linux/mmzone.h>
 #include <linux/vm_event_item.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 extern int sysctl_stat_interval;
 
index 2be2887c6958059db65241338bfaed4a9aa61945..0d556deb497b9988f14ac9322beb8cd815a85211 100644 (file)
@@ -10,7 +10,7 @@
 #include <linux/bitops.h>
 #include <linux/lockdep.h>
 #include <linux/threads.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 struct workqueue_struct;
 
index 206d22297ac36345e5912472cd14ab9c3f51bc10..94e09d361bb1a4c95ae0f60a1375621b7e90261d 100644 (file)
@@ -11,7 +11,7 @@
 #include <linux/timer.h>
 #include <linux/list.h>
 #include <linux/slab.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #define        AX25_T1CLAMPLO                  1
 #define        AX25_T1CLAMPHI                  (30 * HZ)
index abd443604c9fa042ec72d564eff7fb7a86307300..3b938743514bd571f0404e0f1369fc05591c9680 100644 (file)
@@ -41,7 +41,7 @@
 #include <linux/skbuff.h>
 #include <net/netlabel.h>
 #include <net/request_sock.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 /* known doi values */
 #define CIPSO_V4_DOI_UNKNOWN          0x00000000
index c6d5fe5ec1bf4d788155e85b73d47e0e662dcf27..78113daadd631ef5d000f0b65eac968af738bf9a 100644 (file)
@@ -8,7 +8,7 @@
 #define _NET_FLOW_H
 
 #include <linux/in6.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 struct flowi_common {
        int     flowic_oif;
index e9c2ed8af864b4fc197e8310551eb6f7ba71dd25..808fc5f76b03a1a3feb93d3a4265caec6261ce94 100644 (file)
@@ -33,7 +33,7 @@
 #include <net/tcp_states.h>
 #include <net/netns/hash.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/byteorder.h>
 
 /* This is for all connections with a full identity, no wildcards.
index 17404b5388a75302c4951d5f469fd96814ad7709..f1a770977c4f25c9fbe0f85270e73f0355694ca6 100644 (file)
@@ -28,7 +28,7 @@
 #include <net/tcp_states.h>
 #include <net/timewait_sock.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 struct inet_hashinfo;
 
index 4233e6f9841dc7307326f7c52742688c56094867..78c83e62218fbfff60506e4323f72343aed2b83a 100644 (file)
@@ -13,7 +13,7 @@
 #include <linux/spinlock.h>
 #include <linux/rtnetlink.h>
 #include <net/ipv6.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 struct inetpeer_addr_base {
        union {
index b1370c4015b62bb9c2cc72c9b3a616f61d1da2a9..1aaf915656f3930b0b04253cd9171b3ba49a4d9c 100644 (file)
@@ -13,7 +13,7 @@
 #include <linux/sysctl.h>               /* for ctl_path */
 #include <linux/list.h>                 /* for struct list_head */
 #include <linux/spinlock.h>             /* for struct rwlock_t */
-#include <asm/atomic.h>                 /* for struct atomic_t */
+#include <linux/atomic.h>                 /* for struct atomic_t */
 #include <linux/compiler.h>
 #include <linux/timer.h>
 
index 848cce1bb7a53177d46c54f50ffd74ecec551fc4..b95bbb083ee8f24d1309fb19d8121d083656da59 100644 (file)
@@ -26,7 +26,7 @@
 #include <linux/types.h>
 #include <linux/list.h>
 #include <linux/module.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/if.h>
 #include <linux/skbuff.h>
 #include <linux/ieee80211.h>
index 5503b74ab170326ae34236ed8f8ffb9065d0e196..226c846cab08bdf84e0991aee83124c42e6aab0d 100644 (file)
@@ -20,7 +20,7 @@
 #include <linux/hash.h>
 #include <linux/jhash.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 struct net_device;
 struct packet_type;
index 4ba8521490ba7368f63e39e8857d663207fb7a0c..2720884287c3e72e34786a58522d0ee020957c87 100644 (file)
@@ -16,7 +16,7 @@
  *             - Add neighbour cache statistics like rtstat
  */
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/netdevice.h>
 #include <linux/skbuff.h>
 #include <linux/rcupdate.h>
index 1ab1aec209ac25efbe37394a633102925f121dfc..3bb6fa0eace013fd734ee7c39261a09c7910bb76 100644 (file)
@@ -4,7 +4,7 @@
 #ifndef __NET_NET_NAMESPACE_H
 #define __NET_NET_NAMESPACE_H
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/workqueue.h>
 #include <linux/list.h>
 #include <linux/sysctl.h>
index 5d4f8e586e32e6489da5fb7ff5d1525a5b8fe1b1..0b7f05e4a927270630404bccf71e39f492f27230 100644 (file)
@@ -16,7 +16,7 @@
 
 #include <linux/bitops.h>
 #include <linux/compiler.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include <linux/netfilter/nf_conntrack_tcp.h>
 #include <linux/netfilter/nf_conntrack_dccp.h>
index 9db401a8b4d982db3a97a214b73788d1111d88f7..f21a16ee3705325b3830811d0b92eb37ba75dc88 100644 (file)
@@ -38,7 +38,7 @@
 #include <linux/in6.h>
 #include <net/netlink.h>
 #include <net/request_sock.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 struct cipso_v4_doi;
 
index 341eb089349e18654b8beb18172c4ce6c168a9e7..0249399e51a773608814e6cabaeb36915d7c6533 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <linux/list.h>
 #include <linux/list_nulls.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 struct ctl_table_header;
 struct nf_conntrack_ecache;
index 31d7ea2e1d2a2bdbd2c9e9bd823274482f74a564..f7d9c3fc06fd58dd0742f492bca0f5f11d47b50c 100644 (file)
@@ -60,7 +60,7 @@
 #include <linux/in6.h>         /* We get struct in6_addr     */
 #include <linux/ipv6.h>
 #include <asm/param.h>         /* We get MAXHOSTNAMELEN.     */
-#include <asm/atomic.h>                /* This gets us atomic counters.  */
+#include <linux/atomic.h>              /* This gets us atomic counters.  */
 #include <linux/skbuff.h>      /* We need sk_buff_head. */
 #include <linux/workqueue.h>   /* We need tq_struct.    */
 #include <linux/sctp.h>                /* We need sctp* header structs.  */
index 7b82080eb02ce325c944341b961545914987a380..3bbbd78e143954aba700d5c661b14195e15bff92 100644 (file)
@@ -26,7 +26,7 @@
 #include <linux/device.h>
 #include <linux/interrupt.h>
 #include <pcmcia/ss.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 
 /*
index 1082afaed15878aff3e37317501377f96604b746..d44a56388a3e40aa39b982c3b7d56d808abd5da7 100644 (file)
@@ -38,7 +38,7 @@
 #include <linux/completion.h>
 #include <linux/compiler.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include <rdma/ib_verbs.h>
 #include <rdma/ib_mad.h>
index bf4306aea16961010da7bcdb1b4fd29432ccee15..228be3e220d93738867943834c9ccbc7366d7076 100644 (file)
@@ -49,7 +49,7 @@
 #include <linux/scatterlist.h>
 #include <linux/workqueue.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/uaccess.h>
 
 extern struct workqueue_struct *ib_wq;
index 327a5fc4719cdbebf7efad245dfaca7aa2f02044..30d48f6da2281f0da209ec66f69e062da5f55aa4 100644 (file)
@@ -17,7 +17,7 @@
 #include <linux/socket.h>
 #include <linux/in.h>
 #include <linux/spinlock.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 typedef uint32_t       rxrpc_seq_t;    /* Rx message sequence number */
 typedef uint32_t       rxrpc_serial_t; /* Rx message serial number */
index dd82e02ddde3d353d657b6fd8e7e08feff7fa0ad..d371c3ca90c3f167046db0c64e2bd2d6a54c2bae 100644 (file)
@@ -7,7 +7,7 @@
 #include <linux/workqueue.h>
 #include <linux/blkdev.h>
 #include <scsi/scsi.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 struct request_queue;
 struct scsi_cmnd;
index 52501b5d4902b5842f81c83e78b7e6b46652b314..0a1355ca3d7927145d12bfeff3b62db138ccf124 100644 (file)
@@ -43,7 +43,7 @@
 
 #include <linux/init.h>
 #include <asm/types.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/mm.h>
 #include <linux/module.h>
 #include <linux/slab.h>
index 00d79df03e766e2b62abc1f8ffe5b501056334bf..ce4b054acee512ba46351b024951797464eb1ceb 100644 (file)
@@ -44,7 +44,7 @@
 
 #include <linux/init.h>
 #include <asm/types.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/fs.h>
 #include <linux/namei.h>
 #include <linux/mm.h>
index a63507b92ca462073b6651e7d07640c48f26a933..984458035d4acdad7737a9ebeff584e4b34e9568 100644 (file)
@@ -59,7 +59,7 @@
 #include <linux/poll.h>
 #include <linux/flex_array.h> /* used in cgroup_attach_proc */
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 static DEFINE_MUTEX(cgroup_mutex);
 
index f8bc977ccbbe1fb171ed5d15327eb73aa1a652ab..10131fdaff70c36dc9fb181ace777015296891e3 100644 (file)
@@ -55,7 +55,7 @@
 #include <linux/sort.h>
 
 #include <asm/uaccess.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/mutex.h>
 #include <linux/workqueue.h>
 #include <linux/cgroup.h>
index bad6786dee88844d61dae27f83d82dbf1c40840f..0d7c08784efbdd11da5634bf1d4158641089e0b3 100644 (file)
@@ -51,7 +51,7 @@
 
 #include <asm/cacheflush.h>
 #include <asm/byteorder.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/system.h>
 
 #include "debug_core.h"
index 7784bd216b6a25277445cbcf6435298bdb11cdbc..ddddb320be61ee463cc4e7ea163a379c908745de 100644 (file)
@@ -37,7 +37,7 @@
 #include <linux/smp.h>
 #include <linux/interrupt.h>
 #include <linux/sched.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/bitops.h>
 #include <linux/percpu.h>
 #include <linux/notifier.h>
index ced72102adc2c10488e3e663fa4e328a35f98e78..98f51b13bb7ec659b3a40f22a4f52b7bb62dfae3 100644 (file)
@@ -33,7 +33,7 @@
 #include <linux/rcupdate.h>
 #include <linux/interrupt.h>
 #include <linux/sched.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/bitops.h>
 #include <linux/completion.h>
 #include <linux/moduleparam.h>
index 4e144876dc68208b89931518c2d64d1433def061..3b0c0986afc0f0ec6d190176aa9695ba4d998957 100644 (file)
@@ -31,7 +31,7 @@
 #include <linux/rcupdate.h>
 #include <linux/interrupt.h>
 #include <linux/sched.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/bitops.h>
 #include <linux/module.h>
 #include <linux/completion.h>
index 176e5e56ffab1b96cbc5f15a1f758da13498f1d8..9f48f3d82e9b8e2d4b65df9588ed15da574d70ed 100644 (file)
@@ -11,7 +11,7 @@
 #include <linux/rwsem.h>
 
 #include <asm/system.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 /*
  * lock for reading
index c1124752e1d38cdbe66e09836d73b30d73c4d2f8..ba5070ce576541cfb1736c6bd5e17c486e1f3a16 100644 (file)
@@ -19,7 +19,7 @@
 #include <linux/interrupt.h>
 #include <linux/kallsyms.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 /*
  * Structure to determine completion condition and record errors.  May
index fc0f220054172bb4a0f8b1edcd0f3cf9b50202f2..d1db2880d1cf8b3daac8f95f3fd85ac70c1eda7c 100644 (file)
@@ -28,7 +28,7 @@
 #include <linux/fs.h>
 #include <linux/file.h>
 #include <net/genetlink.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 /*
  * Maximum length of a cpumask that can be specified in
index 3f381d0b20a823a3abe67bdda1073e60fd0b4360..616846bcfee56ad87810b9688e5ab9a65cf50856 100644 (file)
@@ -2,7 +2,7 @@
 #define _LINUX_KERNEL_TRACE_H
 
 #include <linux/fs.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/sched.h>
 #include <linux/clocksource.h>
 #include <linux/ring_buffer.h>
index 017fa376505d29a43fe1d69103047fe0365accb4..fd3c8aae55e5a17464e4ee7dbd82d77f0a831ea3 100644 (file)
@@ -12,7 +12,7 @@
 #include <linux/slab.h>
 #include <linux/time.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include "trace.h"
 #include "trace_output.h"
index a21c12bc727ca973908e34e7ddbbdfab62eeb5ed..e12ae0dd08a8d077b1c3160ac1ee90986cc3b38d 100644 (file)
@@ -14,7 +14,7 @@
 #include <linux/spinlock.h>
 #include <linux/init.h>
 #include <linux/module.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 /*
  * We use a hashed array of spinlocks to provide exclusive access
index 44524cc8c32a6ca179d67b8df91394c516ee6046..0c33cde2a1e625e93b269351c9c2e957c95e366a 100644 (file)
@@ -10,7 +10,7 @@
  */
 #include <linux/init.h>
 #include <linux/kernel.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #define INIT(c) do { atomic64_set(&v, c); r = c; } while (0)
 static __init int test_atomic64(void)
index 4855995fcde9dc1b57a853549beb45ada94b013d..a6e633a48cea887fbba14b7c1cbab84bd485c67b 100644 (file)
@@ -26,7 +26,7 @@
 #include <linux/compiler.h>
 #include <linux/types.h>
 #include <linux/init.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include "crc32defs.h"
 #if CRC_LE_BITS == 8
 # define tole(x) __constant_cpu_to_le32(x)
index e73822aa6e9a68131df955c0a6025c7aa5556fc6..b5257725daada8a180f7a4b6d1e4288e7afeb059 100644 (file)
@@ -1,6 +1,6 @@
 #include <linux/module.h>
 #include <linux/spinlock.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 /*
  * This is an implementation of the notion of "decrement a
index 4019979b263722098b8231391e9a7ae82dc153f6..a56a851908d245248803a602f68d5833cf1f8412 100644 (file)
@@ -5,7 +5,7 @@
 #include <linux/list.h>
 #include <linux/cpumask.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/pgtable.h>
 #include <asm/mmu.h>
 
index aacee45616fc44792f768135abc99dd6f429f003..d6880f542f955682d62fa8935497ebd8e444cb8e 100644 (file)
@@ -96,7 +96,7 @@
 
 #include <asm/sections.h>
 #include <asm/processor.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include <linux/kmemcheck.h>
 #include <linux/kmemleak.h>
index 0ae881831ae27deb86aaf8332dcfa94c28ca01ea..bf3918187165f79351f08daac748e17cc34acd5e 100644 (file)
--- a/mm/slob.c
+++ b/mm/slob.c
@@ -70,7 +70,7 @@
 
 #include <trace/events/kmem.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 /*
  * slob_block has a field 'units', which indicates size of block if +ve,
index ab8494cde0072aee473d879ade8cadb4afa9f64a..464621d18eb249fde1403741e0f75b193aa0c18a 100644 (file)
@@ -26,7 +26,7 @@
 #include <linux/rcupdate.h>
 #include <linux/pfn.h>
 #include <linux/kmemleak.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/uaccess.h>
 #include <asm/tlbflush.h>
 #include <asm/shmparam.h>
index fc63526d8695cc4a629324334b41ef204eae38b9..f41f02656ff41a18adefdcf33423b15c1aed785f 100644 (file)
@@ -9,7 +9,7 @@
 #include <linux/sonet.h>
 #include <linux/bitops.h>
 #include <linux/errno.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 int atm_charge(struct atm_vcc *vcc, int truesize)
 {
index 4bc8c67ecb14fee507dc621ab58b829c11fde8c3..852394072fa151956cec3e819da113024fbb6971 100644 (file)
@@ -37,7 +37,7 @@
 #include <linux/uaccess.h>
 #include <asm/byteorder.h> /* for htons etc. */
 #include <asm/system.h> /* save/restore_flags */
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include "common.h"
 #include "resources.h"
index 22b963d06a10bb19b5eaea32886a8c7ee15b371a..14ff9fe399896c024630c3bced79de195cd5dd54 100644 (file)
@@ -23,7 +23,7 @@
 #include <linux/uaccess.h>
 #include <linux/poll.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include "resources.h"         /* atm_find_dev */
 #include "common.h"            /* prototypes */
index ba48daa68c1f19e19427ac96c64b161f271c3e57..215c9fad7cdf48161628a0db9486590f40b74f50 100644 (file)
@@ -1335,7 +1335,7 @@ static void lane2_associate_ind(struct net_device *dev, const u8 *mac_addr,
 #include <linux/types.h>
 #include <linux/timer.h>
 #include <linux/param.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/inetdevice.h>
 #include <net/route.h>
 
index be3afdefec5832bb8e3861f883eff27e07bfcad0..0d020de8d2334d6e8acb33d3f5a4fef7d544570c 100644 (file)
@@ -27,7 +27,7 @@
 #include <net/atmclip.h>
 #include <linux/uaccess.h>
 #include <linux/param.h> /* for HZ */
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include "resources.h"
 #include "common.h" /* atm_proc_init prototype */
 #include "signaling.h" /* to get sigd - ugly too */
index e0dfbc151dd76cb4d9680d8bfd38e2cf73314d9c..68def3b7fb49552657a0f42141b84613da85e43a 100644 (file)
@@ -21,7 +21,7 @@
 #include <linux/jhash.h>
 #include <linux/random.h>
 #include <linux/slab.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/unaligned.h>
 #include "br_private.h"
 
index 990703b8863b4d0bdb29619350e7d4aec01bde17..bf32c33cad3b03268016fa2fee1a6d2756d641d9 100644 (file)
@@ -22,7 +22,7 @@
 #include <linux/cpumask.h>
 #include <linux/mutex.h>
 #include <net/flow.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/security.h>
 
 struct flow_cache_entry {
index 2bd8e53d7774fa4d02a5ae36140775f6181dd3ca..9e885f180b602656b51e2721ffd6e49cb414b6ae 100644 (file)
@@ -30,7 +30,7 @@
 #include <linux/netdevice.h>
 #include <linux/timer.h>
 #include <linux/spinlock.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/uaccess.h>
 #include <net/neighbour.h>
 #include <net/dst.h>
index 0dc3fe61085bd796e202291e85237885636324e1..7f0eb087dc116390ebb67aca72295f95d24dcde3 100644 (file)
@@ -38,7 +38,7 @@
 #include <linux/seq_file.h>
 #include <linux/rcupdate.h>
 #include <linux/jhash.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <net/net_namespace.h>
 #include <net/neighbour.h>
 #include <net/dst.h>
index cd0354e9bdb37398701e95a2a3b3946503d37e71..a9a62f225a6b5baf2135565b4550d7e518ea51a3 100644 (file)
@@ -25,7 +25,7 @@
 #include <linux/netdevice.h>
 #include <linux/timer.h>
 #include <linux/spinlock.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/uaccess.h>
 #include <linux/route.h> /* RTF_xxx */
 #include <net/neighbour.h>
index 09825711d58abe08b424049fc2c1fe01cd00857a..67f691bd4acfee77b2b3402e2e9e4e5092bab8c0 100644 (file)
@@ -22,7 +22,7 @@
 #include <linux/timer.h>
 #include <linux/spinlock.h>
 #include <net/sock.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <net/flow.h>
 #include <net/dn.h>
 
index 2b3c23c287cdf343670195846f68b84f6ce02d4a..2c2a98e402e78f061523038c44c3852c962bc1b8 100644 (file)
@@ -50,7 +50,7 @@
 #include <net/tcp.h>
 #include <net/netlabel.h>
 #include <net/cipso_ipv4.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/bug.h>
 #include <asm/unaligned.h>
 
index 08526786dc3961d16d37eb18609a8ce840c742d3..1457acb39cec4ca0c7f34707383f97abead4bed8 100644 (file)
@@ -38,7 +38,7 @@
  */
 
 #include <linux/types.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/byteorder.h>
 #include <asm/current.h>
 #include <asm/uaccess.h>
index 36c2842a86b25c8714e166b4b01a8293ebb2fa1b..0bc98886c383c93c79e81a3cd7c4bfe220502b58 100644 (file)
@@ -40,7 +40,7 @@
 #include <linux/slab.h>
 
 #include <asm/uaccess.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include <net/icmp.h>
 #include <net/ip.h>
index f2b713847b4596209e87544995cd6a8193e4640e..075a3808aa4005cdbea5aca59430a1e7970c0cad 100644 (file)
@@ -51,7 +51,7 @@
 #include <linux/cpu.h>
 #include <linux/reboot.h>
 #include <net/iucv/iucv.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/ebcdic.h>
 #include <asm/io.h>
 #include <asm/irq.h>
index ed8a2335442ffa5299450b341bb20b70a586f18a..ad4ac2601a569ccb7b95e36a9c83fac58fc4693b 100644 (file)
@@ -55,7 +55,7 @@
 #include <net/protocol.h>
 
 #include <asm/byteorder.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include "l2tp_core.h"
 
index 39a21d0c61c48f2506bc7d24e7eeeee1610a11ae..f42cd091596602181f7d1a54ac0992a6ef40f371 100644 (file)
@@ -97,7 +97,7 @@
 #include <net/xfrm.h>
 
 #include <asm/byteorder.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include "l2tp_core.h"
 
index 2e7ccbb43ddb563b7491eafe197ec0e91d8c4b4b..2d8158acf6faf5298c84e4fdabc6d8f9847b737b 100644 (file)
@@ -33,7 +33,7 @@
 #include <net/netfilter/nf_log.h>
 #include <net/netfilter/nfnetlink_log.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #ifdef CONFIG_BRIDGE_NETFILTER
 #include "../bridge/br_private.h"
index 49132bddd73ee51674c3e0fa10da64702bf69e83..00bd475eab4b615ca48946c05b18566325ced03a 100644 (file)
@@ -31,7 +31,7 @@
 #include <net/sock.h>
 #include <net/netfilter/nf_queue.h>
 
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #ifdef CONFIG_BRIDGE_NETFILTER
 #include "../bridge/br_private.h"
index bae5756b1626f0291914ce6dd24a13717c334c9b..dd53a36d89af2f5d3a538d65c416eb45eb5deee9 100644 (file)
@@ -39,7 +39,7 @@
 #include <net/genetlink.h>
 #include <net/netlabel.h>
 #include <net/cipso_ipv4.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include "netlabel_user.h"
 #include "netlabel_cipso_v4.h"
index 1b83e0009d8d4b7fa965dc21552699b905a2ca04..b528dd928d3c2fd580ace2d5d10cf947ab764b19 100644 (file)
@@ -39,7 +39,7 @@
 #include <net/netlabel.h>
 #include <net/cipso_ipv4.h>
 #include <asm/bug.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include "netlabel_domainhash.h"
 #include "netlabel_unlabeled.h"
index 4f251b19fbcc827b7cd1da5e765000549e3f9282..dff8a08092459690b1ebb47d667001b3dd3af4bc 100644 (file)
@@ -42,7 +42,7 @@
 #include <net/ipv6.h>
 #include <net/netlabel.h>
 #include <net/cipso_ipv4.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include "netlabel_domainhash.h"
 #include "netlabel_user.h"
index 0a25838bcf4567477654f2289ca4d3acff3bbb24..8db37f4c10f7fcaa89dc778c4b49e8fd16d2f346 100644 (file)
@@ -32,7 +32,7 @@
 #define _NETLABEL_MGMT_H
 
 #include <net/netlabel.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 /*
  * The following NetLabel payloads are supported by the management interface.
index 9a290ef5c1757421c638245fc9000afda6fd3c10..f1ecf848e3acb69db72ae2cc2efdd8f6a74aaac8 100644 (file)
@@ -52,7 +52,7 @@
 #include <net/net_namespace.h>
 #include <net/netlabel.h>
 #include <asm/bug.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include "netlabel_user.h"
 #include "netlabel_addrlist.h"
index cae761a8536cc35bb724ca2b5d1d74124fbbb76e..ddf05288d9f1a60a3eed994fb969bc9103c0e7c6 100644 (file)
@@ -42,7 +42,7 @@
 
 #include <linux/wait.h>                /* wait_queue_head_t, etc */
 #include <linux/spinlock.h>            /* spinlock_t, etc */
-#include <asm/atomic.h>                        /* atomic_t, etc */
+#include <linux/atomic.h>                      /* atomic_t, etc */
 
 #include <rdma/rdma_cm.h>              /* RDMA connection api */
 #include <rdma/ib_verbs.h>             /* RDMA verbs api */
index d234a98a460a3e361589cca5db2cc56d83d9a339..2761af36d1412d4d4fd8a8f21f2a2174293d43e9 100644 (file)
@@ -47,7 +47,7 @@
 #include <linux/string.h>
 #include <asm/uaccess.h>
 #include <linux/interrupt.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <asm/hardirq.h>
 #include <linux/netdevice.h>
 #include <linux/in.h>
index 9f4c77dca35fc93b2bed2a8616c726e2d5b8eaa5..a38316b2e3f66b9840debbf830d57d6e111cb2e1 100644 (file)
@@ -57,7 +57,7 @@
 #include <net/netlabel.h>
 #include <linux/uaccess.h>
 #include <asm/ioctls.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include <linux/bitops.h>
 #include <linux/interrupt.h>
 #include <linux/netdevice.h>   /* for network interface checks */
index 68178b76a2b3cf25c02ccb1badda3e0e969f29ab..48665ecd119715359cc4ffa624afee5c4332dd57 100644 (file)
@@ -46,7 +46,7 @@
 #include <net/xfrm.h>
 #include <net/checksum.h>
 #include <net/udp.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include "avc.h"
 #include "objsec.h"
index fe7ad64dccd7361a2a4f88df437d7a84de4a0743..43c7e12bc05d0fdabdadbae34701bbfe5436ce20 100644 (file)
@@ -52,7 +52,7 @@
 #include <sound/asoundef.h>
 #include <sound/initval.h>
 #include <asm/io.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include "echoaudio.h"
 
 MODULE_FIRMWARE("ea/darla20_dsp.fw");
index d1fd34b1a8e35971a06fe943247d23aa96de12f1..95b03306e02685fec156e7907bf3a3a87e1bf7f7 100644 (file)
@@ -56,7 +56,7 @@
 #include <sound/asoundef.h>
 #include <sound/initval.h>
 #include <asm/io.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include "echoaudio.h"
 
 MODULE_FIRMWARE("ea/darla24_dsp.fw");
index 1dffdc54416d3e1fbe33c3d876e9d0fb4a1d1c0e..8723c40183e6de331060b74cb55e7eb74204c604 100644 (file)
@@ -64,7 +64,7 @@
 #include <sound/initval.h>
 #include <sound/rawmidi.h>
 #include <asm/io.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include "echoaudio.h"
 
 MODULE_FIRMWARE("ea/loader_dsp.fw");
index 050e54aa693f5e90f6b0b87ffb61b1f994a37a02..0058c67115df0344aa7465fc0f6113fd15df1d74 100644 (file)
@@ -56,7 +56,7 @@
 #include <sound/asoundef.h>
 #include <sound/initval.h>
 #include <asm/io.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include "echoaudio.h"
 
 MODULE_FIRMWARE("ea/gina20_dsp.fw");
index 5748fc6d29d627b2a3dd6c9c03548aa1a74b109e..14e4925e76cc204c541995a661d78a6c7252f558 100644 (file)
@@ -62,7 +62,7 @@
 #include <sound/asoundef.h>
 #include <sound/initval.h>
 #include <asm/io.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include "echoaudio.h"
 
 MODULE_FIRMWARE("ea/loader_dsp.fw");
index 4ae5e35cb5f17e76f64d329760ae2db5f0fd43ce..f416b154f1461a05eebea4b1694db0d45b8ac160 100644 (file)
@@ -54,7 +54,7 @@
 #include <sound/asoundef.h>
 #include <sound/initval.h>
 #include <asm/io.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include "echoaudio.h"
 
 MODULE_FIRMWARE("ea/loader_dsp.fw");
index 3550715bab1c101b7a78e8923fba782d7cfb6b23..e594a3b2766e2e846a6669c90f2a8a1b0e2dc411 100644 (file)
@@ -54,7 +54,7 @@
 #include <sound/asoundef.h>
 #include <sound/initval.h>
 #include <asm/io.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include "echoaudio.h"
 
 MODULE_FIRMWARE("ea/loader_dsp.fw");
index 19b191fd0120d62dfca64fa9559c5adc0dd86177..f0d00bfceee58147759aefa2d9aa88a94d995126 100644 (file)
@@ -54,7 +54,7 @@
 #include <sound/pcm_params.h>
 #include <sound/asoundef.h>
 #include <sound/initval.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include "echoaudio.h"
 
 MODULE_FIRMWARE("ea/loader_dsp.fw");
index a9fcedf317a4007a18249e9882244165bcbc98dc..1af0037304c6c7b31ee1af96b396bdd15e8aaa62 100644 (file)
@@ -55,7 +55,7 @@
 #include <sound/asoundef.h>
 #include <sound/initval.h>
 #include <asm/io.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include "echoaudio.h"
 
 MODULE_FIRMWARE("ea/loader_dsp.fw");
index bcdfac63212c78a8ee2017e8f9406eba31237e24..0b51163452b5a25428a4b11d04b1de50196609f5 100644 (file)
@@ -55,7 +55,7 @@
 #include <sound/pcm_params.h>
 #include <sound/asoundef.h>
 #include <sound/initval.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include "echoaudio.h"
 
 MODULE_FIRMWARE("ea/loader_dsp.fw");
index d3a98c5dac86e32261c9d47101f8f9633942e800..3f63ab8dfff3f707ad965a8616458fd71d8fd484 100644 (file)
@@ -62,7 +62,7 @@
 #include <sound/initval.h>
 #include <sound/rawmidi.h>
 #include <asm/io.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include "echoaudio.h"
 
 MODULE_FIRMWARE("ea/layla20_dsp.fw");
index 2a1dca6dce17832d5a6d3c30607e1591fd395ac1..28313724447283e24991271243d1c255aec60688 100644 (file)
@@ -64,7 +64,7 @@
 #include <sound/initval.h>
 #include <sound/rawmidi.h>
 #include <asm/io.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include "echoaudio.h"
 
 MODULE_FIRMWARE("ea/loader_dsp.fw");
index 9cdf14cfdd741d2147acb9a47e9986f54a523df6..eddaeb4da50ebd9e4db04b7c337badbe66625706 100644 (file)
@@ -63,7 +63,7 @@
 #include <sound/initval.h>
 #include <sound/rawmidi.h>
 #include <asm/io.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include "echoaudio.h"
 
 MODULE_FIRMWARE("ea/loader_dsp.fw");
index 1047be405ebe03dcd2df3eb4a6be1e4e90db6621..0364011c237d0b68e9a58bfb6425bf396cb6af86 100644 (file)
@@ -60,7 +60,7 @@
 #include <sound/asoundef.h>
 #include <sound/initval.h>
 #include <asm/io.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 #include "echoaudio.h"
 
 MODULE_FIRMWARE("ea/loader_dsp.fw");
index e2a124ae27e882f976736859bf60c81f718c770f..6792eda9c9a56c0c41f4d8077f83edb19fc94965 100644 (file)
@@ -26,7 +26,7 @@
 #define LX6464ES_H
 
 #include <linux/spinlock.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 #include <sound/core.h>
 #include <sound/pcm.h>
index 73f9cbacc0775bbc9cb1cf8f36f187e5606e8486..1b839a0f3653a48fabdd09de110c6be346d79b4f 100644 (file)
@@ -69,7 +69,7 @@
 
 #include <linux/of.h>
 #include <linux/of_device.h>
-#include <asm/atomic.h>
+#include <linux/atomic.h>
 
 MODULE_AUTHOR("Rudolf Koenig, Brent Baccala and Martin Habets");
 MODULE_DESCRIPTION("Sun DBRI");