Skip to content

Commit

Permalink
[POWERPC] Make altivec code in swsusp_32.S depend on CONFIG_ALTIVEC
Browse files Browse the repository at this point in the history
This makes the altivec code in swsusp_32.S depend on CONFIG_ALTIVEC to
avoid build failures for systems that don't have altivec. I'm not sure
whether the code will actually work for other systems, but it was merged
for just ppc32 rather than powermac a very long time ago.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Johannes Berg authored and Paul Mackerras committed Nov 8, 2007
1 parent 67b6051 commit 2e6f40d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/powerpc/kernel/swsusp_32.S
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,12 @@ _GLOBAL(swsusp_arch_suspend)
/* Resume code */
_GLOBAL(swsusp_arch_resume)

#ifdef CONFIG_ALTIVEC
/* Stop pending alitvec streams and memory accesses */
BEGIN_FTR_SECTION
DSSALL
END_FTR_SECTION_IFSET(CPU_FTR_ALTIVEC)
#endif
sync

/* Disable MSR:DR to make sure we don't take a TLB or
Expand Down

0 comments on commit 2e6f40d

Please sign in to comment.