lx_emul: move arch_atomic64_add_return to dde_linux

This commit is contained in:
Christian Helmuth 2023-06-05 15:58:21 +02:00 committed by Norman Feske
parent 6a57683e52
commit 54a549d808
2 changed files with 6 additions and 9 deletions

View File

@ -42,3 +42,9 @@ s64 arch_atomic64_inc_return(atomic64_t *v)
{
return arch_atomic64_add(1, v);
}
s64 arch_atomic64_add_return(s64 i, atomic64_t *v)
{
return arch_atomic64_add(i, v);
}

View File

@ -533,15 +533,6 @@ void rfkill_init(void)
}
#ifdef CONFIG_X86_32
s64 arch_atomic64_add_return(s64 i, atomic64_t *v)
{
v->counter += i;
return v->counter;
}
#endif
void kvfree_call_rcu(struct rcu_head * head,rcu_callback_t func)
{
void *ptr = (void *) head - (unsigned long) func;