This commit was generated by cvs2svn to compensate for changes in r632,
[linux-2.6.git] / fs / xfs / linux-2.6 / xfs_linux.h
index 5c05be6..42e2c26 100644 (file)
@@ -144,7 +144,10 @@ static inline void set_buffer_unwritten_io(struct buffer_head *bh)
 #define xfs_inherit_nosymlinks xfs_params.inherit_nosym.val
 #define xfs_rotorstep          xfs_params.rotorstep.val
 
-#define current_cpu()          smp_processor_id()
+#ifndef __smp_processor_id
+#define __smp_processor_id()   smp_processor_id()
+#endif
+#define current_cpu()          __smp_processor_id()
 #define current_pid()          (current->pid)
 #define current_fsuid(cred)    (current->fsuid)
 #define current_fsgid(cred)    (current->fsgid)