mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 10:46:25 +00:00
lx_emul: move arch_atomic64_add_return to dde_linux
This commit is contained in:
parent
6a57683e52
commit
54a549d808
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user