aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/chiptod.h1
-rw-r--r--include/cpu.h13
-rw-r--r--include/processor.h2
3 files changed, 16 insertions, 0 deletions
diff --git a/include/chiptod.h b/include/chiptod.h
index e0490b6..43f1d3d 100644
--- a/include/chiptod.h
+++ b/include/chiptod.h
@@ -24,5 +24,6 @@
extern void chiptod_init(void);
extern bool chiptod_wakeup_resync(void);
extern int chiptod_recover_tb_errors(void);
+extern void chiptod_reset_tb(void);
#endif /* __CHIPTOD_H */
diff --git a/include/cpu.h b/include/cpu.h
index bb516f2..168714a 100644
--- a/include/cpu.h
+++ b/include/cpu.h
@@ -72,6 +72,19 @@ struct cpu_thread {
#endif
struct lock job_lock;
struct list_head job_queue;
+ /*
+ * Per-core mask tracking for threads in HMI handler and
+ * a cleanup done bit.
+ * [D][TTTTTTTT]
+ *
+ * The member 'core_hmi_state' is primary only.
+ * The 'core_hmi_state_ptr' member from all secondry cpus will point
+ * to 'core_hmi_state' member in primary cpu.
+ */
+ uint32_t core_hmi_state; /* primary only */
+ uint32_t *core_hmi_state_ptr;
+ /* Mask to indicate thread id in core. */
+ uint8_t thread_mask;
};
/* This global is set to 1 to allow secondaries to callin,
diff --git a/include/processor.h b/include/processor.h
index aaf7732..cdc5919 100644
--- a/include/processor.h
+++ b/include/processor.h
@@ -160,6 +160,8 @@
SPR_HMER_PROC_RECV_AGAIN)
/* Bits in HID0 */
+#define SPR_HID0_POWER8_4LPARMODE PPC_BIT(2)
+#define SPR_HID0_POWER8_2LPARMODE PPC_BIT(6)
#define SPR_HID0_HILE PPC_BIT(19)
#define SPR_HID0_ENABLE_ATTN PPC_BIT(31)