diff options
Diffstat (limited to 'arch/sh/include/asm/smp.h')
-rw-r--r-- | arch/sh/include/asm/smp.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/sh/include/asm/smp.h b/arch/sh/include/asm/smp.h index 78b0d0f4b24b..1baf0ba96242 100644 --- a/arch/sh/include/asm/smp.h +++ b/arch/sh/include/asm/smp.h | |||
@@ -69,6 +69,16 @@ static inline int hard_smp_processor_id(void) | |||
69 | return mp_ops->smp_processor_id(); | 69 | return mp_ops->smp_processor_id(); |
70 | } | 70 | } |
71 | 71 | ||
72 | struct of_cpu_method { | ||
73 | const char *method; | ||
74 | struct plat_smp_ops *ops; | ||
75 | }; | ||
76 | |||
77 | #define CPU_METHOD_OF_DECLARE(name, _method, _ops) \ | ||
78 | static const struct of_cpu_method __cpu_method_of_table_##name \ | ||
79 | __used __section(__cpu_method_of_table) \ | ||
80 | = { .method = _method, .ops = _ops } | ||
81 | |||
72 | #else | 82 | #else |
73 | 83 | ||
74 | #define hard_smp_processor_id() (0) | 84 | #define hard_smp_processor_id() (0) |