[Skiboot] [PATCH 02/13] cpu.h: Use this_cpu through accessor

Joel Stanley joel at jms.id.au
Wed May 2 18:37:42 AEST 2018


This is the only call site where we use __this_cpu directly. Instead use
this_cpu() to access it in preperation for using clang to build skiboot.

Signed-off-by: Joel Stanley <joel at jms.id.au>
---
 include/cpu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/cpu.h b/include/cpu.h
index 2ca59b9648fa..091b1c940d41 100644
--- a/include/cpu.h
+++ b/include/cpu.h
@@ -305,7 +305,7 @@ void cpu_set_ipi_enable(bool sreset_enabled);
 
 static inline void cpu_give_self_os(void)
 {
-	__this_cpu->state = cpu_state_os;
+	this_cpu()->state = cpu_state_os;
 }
 
 extern unsigned long __attrconst cpu_stack_bottom(unsigned int pir);
-- 
2.17.0



More information about the Skiboot mailing list