aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/caif/caif_dev.c4
-rw-r--r--net/caif/cffrml.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/net/caif/caif_dev.c b/net/caif/caif_dev.c
index f1fa1f6e658d..64930cc2746a 100644
--- a/net/caif/caif_dev.c
+++ b/net/caif/caif_dev.c
@@ -69,12 +69,12 @@ static struct caif_device_entry_list *caif_device_list(struct net *net)
69 69
70static void caifd_put(struct caif_device_entry *e) 70static void caifd_put(struct caif_device_entry *e)
71{ 71{
72 irqsafe_cpu_dec(*e->pcpu_refcnt); 72 this_cpu_dec(*e->pcpu_refcnt);
73} 73}
74 74
75static void caifd_hold(struct caif_device_entry *e) 75static void caifd_hold(struct caif_device_entry *e)
76{ 76{
77 irqsafe_cpu_inc(*e->pcpu_refcnt); 77 this_cpu_inc(*e->pcpu_refcnt);
78} 78}
79 79
80static int caifd_refcnt_read(struct caif_device_entry *e) 80static 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
183void cffrml_hold(struct cflayer *layr) 183void 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
190int cffrml_refcnt_read(struct cflayer *layr) 190int cffrml_refcnt_read(struct cflayer *layr)