Skip to content

Commit

Permalink
powerpc/64: drop redundant defination of spin_until_cond
Browse files Browse the repository at this point in the history
linux/processor.h has exactly same defination for spin_until_cond.
Drop the redundant defination in asm/processor.h

Signed-off-by: Sudeep Holla <[email protected]>
Signed-off-by: Christophe Leroy <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/1fff2054e5dfc00329804dbd3f2a91667c9a8aff.1623438544.git.christophe.leroy@csgroup.eu
  • Loading branch information
sudeep-holla authored and mpe committed Jun 16, 2021
1 parent ac3d085 commit db8f706
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions arch/powerpc/include/asm/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -347,17 +347,6 @@ static inline unsigned long __pack_fe01(unsigned int fpmode)

#define spin_end() HMT_medium()

#define spin_until_cond(cond) \
do { \
if (unlikely(!(cond))) { \
spin_begin(); \
do { \
spin_cpu_relax(); \
} while (!(cond)); \
spin_end(); \
} \
} while (0)

#endif

/* Check that a certain kernel stack pointer is valid in task_struct p */
Expand Down

0 comments on commit db8f706

Please sign in to comment.