6
6
* Copyright (C) 2001 PPC 64 Team, IBM Corp
7
7
*/
8
8
9
+ #include <vdso/processor.h>
10
+
9
11
#include <asm/reg.h>
10
12
11
13
#ifdef CONFIG_VSX
@@ -63,14 +65,6 @@ extern int _chrp_type;
63
65
64
66
#endif /* defined(__KERNEL__) && defined(CONFIG_PPC32) */
65
67
66
- /* Macros for adjusting thread priority (hardware multi-threading) */
67
- #define HMT_very_low () asm volatile("or 31,31,31 # very low priority")
68
- #define HMT_low () asm volatile("or 1,1,1 # low priority")
69
- #define HMT_medium_low () asm volatile("or 6,6,6 # medium low priority")
70
- #define HMT_medium () asm volatile("or 2,2,2 # medium priority")
71
- #define HMT_medium_high () asm volatile("or 5,5,5 # medium high priority")
72
- #define HMT_high () asm volatile("or 3,3,3 # high priority")
73
-
74
68
#ifdef __KERNEL__
75
69
76
70
#ifdef CONFIG_PPC64
@@ -344,7 +338,6 @@ static inline unsigned long __pack_fe01(unsigned int fpmode)
344
338
}
345
339
346
340
#ifdef CONFIG_PPC64
347
- #define cpu_relax () do { HMT_low(); HMT_medium(); barrier(); } while (0)
348
341
349
342
#define spin_begin () HMT_low()
350
343
@@ -363,8 +356,6 @@ do { \
363
356
} \
364
357
} while (0)
365
358
366
- #else
367
- #define cpu_relax () barrier()
368
359
#endif
369
360
370
361
/* Check that a certain kernel stack pointer is valid in task_struct p */
0 commit comments