aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/switch_to.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/include/asm/switch_to.h')
-rw-r--r--arch/powerpc/include/asm/switch_to.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/switch_to.h b/arch/powerpc/include/asm/switch_to.h
index d2468eb12639..58abeda64cb7 100644
--- a/arch/powerpc/include/asm/switch_to.h
+++ b/arch/powerpc/include/asm/switch_to.h
@@ -86,6 +86,8 @@ static inline void clear_task_ebb(struct task_struct *t)
86{ 86{
87#ifdef CONFIG_PPC_BOOK3S_64 87#ifdef CONFIG_PPC_BOOK3S_64
88 /* EBB perf events are not inherited, so clear all EBB state. */ 88 /* EBB perf events are not inherited, so clear all EBB state. */
89 t->thread.ebbrr = 0;
90 t->thread.ebbhr = 0;
89 t->thread.bescr = 0; 91 t->thread.bescr = 0;
90 t->thread.mmcr2 = 0; 92 t->thread.mmcr2 = 0;
91 t->thread.mmcr0 = 0; 93 t->thread.mmcr0 = 0;