x86: atomic64: Inline atomic64_read() again
[deliverable/linux.git] / arch / x86 / lib / atomic64_32.c
index 1d98c9eb6eacb284dcf846c703bd8979ce4b9fc2..824fa0be55a39f295d200dd5e130647c11c4a9f3 100644 (file)
@@ -66,31 +66,10 @@ void atomic64_set(atomic64_t *ptr, u64 new_val)
 {
        atomic64_xchg(ptr, new_val);
 }
-EXPORT_SYMBOL(atomic64_read);
+EXPORT_SYMBOL(atomic64_set);
 
 /**
- * atomic64_read - read atomic64 variable
- * @ptr:      pointer to type atomic64_t
- *
- * Atomically reads the value of @ptr and returns it.
- */
-u64 atomic64_read(atomic64_t *ptr)
-{
-       u64 res;
-
-       asm volatile(
-               "mov %%ebx, %%eax\n\t"
-               "mov %%ecx, %%edx\n\t"
-               LOCK_PREFIX "cmpxchg8b %1\n"
-                       : "+A" (res)
-                       : "m" (*ptr)
-               );
-
-       return res;
-}
 EXPORT_SYMBOL(atomic64_read);
-
-/**
  * atomic64_add_return - add and return
  * @delta: integer value to add
  * @ptr:   pointer to type atomic64_t
This page took 0.025112 seconds and 5 git commands to generate.