diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-09 16:08:28 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-09 16:08:28 -0500 |
commit | 6b3da11b3c36fdafce3a72e0e90d6c4e99e9aad5 (patch) | |
tree | 33e64fc453619978c3ecc86c7ec3649db3b4d8dc /net/caif | |
parent | db0c2bf69aa095d4a6de7b1145f29fe9a7c0f6a3 (diff) | |
parent | 933393f58fef9963eac61db8093689544e29a600 (diff) |
Merge branch 'for-3.3' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu
* 'for-3.3' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu:
percpu: Remove irqsafe_cpu_xxx variants
Fix up conflict in arch/x86/include/asm/percpu.h due to clash with
cebef5beed3d ("x86: Fix and improve percpu_cmpxchg{8,16}b_double()")
which edited the (now removed) irqsafe_cpu_cmpxchg*_double code.
Diffstat (limited to 'net/caif')
-rw-r--r-- | net/caif/caif_dev.c | 4 | ||||
-rw-r--r-- | net/caif/cffrml.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/net/caif/caif_dev.c b/net/caif/caif_dev.c index b0ce14fbf6ef..61570ee76fe6 100644 --- a/net/caif/caif_dev.c +++ b/net/caif/caif_dev.c | |||
@@ -76,12 +76,12 @@ static struct caif_device_entry_list *caif_device_list(struct net *net) | |||
76 | 76 | ||
77 | static void caifd_put(struct caif_device_entry *e) | 77 | static void caifd_put(struct caif_device_entry *e) |
78 | { | 78 | { |
79 | irqsafe_cpu_dec(*e->pcpu_refcnt); | 79 | this_cpu_dec(*e->pcpu_refcnt); |
80 | } | 80 | } |
81 | 81 | ||
82 | static void caifd_hold(struct caif_device_entry *e) | 82 | static void caifd_hold(struct caif_device_entry *e) |
83 | { | 83 | { |
84 | irqsafe_cpu_inc(*e->pcpu_refcnt); | 84 | this_cpu_inc(*e->pcpu_refcnt); |
85 | } | 85 | } |
86 | 86 | ||
87 | static int caifd_refcnt_read(struct caif_device_entry *e) | 87 | static int caifd_refcnt_read(struct caif_device_entry *e) |
diff --git a/net/caif/cffrml.c b/net/caif/cffrml.c index d3ca87bf23b7..0a7df7ef062d 100644 --- a/net/caif/cffrml.c +++ b/net/caif/cffrml.c | |||
@@ -177,14 +177,14 @@ void cffrml_put(struct cflayer *layr) | |||
177 | { | 177 | { |
178 | struct cffrml *this = container_obj(layr); | 178 | struct cffrml *this = container_obj(layr); |
179 | if (layr != NULL && this->pcpu_refcnt != NULL) | 179 | if (layr != NULL && this->pcpu_refcnt != NULL) |
180 | irqsafe_cpu_dec(*this->pcpu_refcnt); | 180 | this_cpu_dec(*this->pcpu_refcnt); |
181 | } | 181 | } |
182 | 182 | ||
183 | void cffrml_hold(struct cflayer *layr) | 183 | void cffrml_hold(struct cflayer *layr) |
184 | { | 184 | { |
185 | struct cffrml *this = container_obj(layr); | 185 | struct cffrml *this = container_obj(layr); |
186 | if (layr != NULL && this->pcpu_refcnt != NULL) | 186 | if (layr != NULL && this->pcpu_refcnt != NULL) |
187 | irqsafe_cpu_inc(*this->pcpu_refcnt); | 187 | this_cpu_inc(*this->pcpu_refcnt); |
188 | } | 188 | } |
189 | 189 | ||
190 | int cffrml_refcnt_read(struct cflayer *layr) | 190 | int cffrml_refcnt_read(struct cflayer *layr) |