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
cebef5beed
("x86: Fix and improve percpu_cmpxchg{8,16}b_double()")
which edited the (now removed) irqsafe_cpu_cmpxchg*_double code.
This commit is contained in:
@@ -76,12 +76,12 @@ static struct caif_device_entry_list *caif_device_list(struct net *net)
|
||||
|
||||
static void caifd_put(struct caif_device_entry *e)
|
||||
{
|
||||
irqsafe_cpu_dec(*e->pcpu_refcnt);
|
||||
this_cpu_dec(*e->pcpu_refcnt);
|
||||
}
|
||||
|
||||
static void caifd_hold(struct caif_device_entry *e)
|
||||
{
|
||||
irqsafe_cpu_inc(*e->pcpu_refcnt);
|
||||
this_cpu_inc(*e->pcpu_refcnt);
|
||||
}
|
||||
|
||||
static int caifd_refcnt_read(struct caif_device_entry *e)
|
||||
|
@@ -177,14 +177,14 @@ void cffrml_put(struct cflayer *layr)
|
||||
{
|
||||
struct cffrml *this = container_obj(layr);
|
||||
if (layr != NULL && this->pcpu_refcnt != NULL)
|
||||
irqsafe_cpu_dec(*this->pcpu_refcnt);
|
||||
this_cpu_dec(*this->pcpu_refcnt);
|
||||
}
|
||||
|
||||
void cffrml_hold(struct cflayer *layr)
|
||||
{
|
||||
struct cffrml *this = container_obj(layr);
|
||||
if (layr != NULL && this->pcpu_refcnt != NULL)
|
||||
irqsafe_cpu_inc(*this->pcpu_refcnt);
|
||||
this_cpu_inc(*this->pcpu_refcnt);
|
||||
}
|
||||
|
||||
int cffrml_refcnt_read(struct cflayer *layr)
|
||||
|
Reference in New Issue
Block a user