فهرست منبع

[POWERPC] Remove dead code at KernelAltiVec

This code isn't referenced anywhere, so remove it.

Signed-off-by: Dale Farnsworth <dale@farnsworth.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Dale Farnsworth 17 سال پیش
والد
کامیت
445857e0fc
2فایلهای تغییر یافته به همراه0 افزوده شده و 34 حذف شده
  1. 0 17
      arch/powerpc/kernel/head_32.S
  2. 0 17
      arch/ppc/kernel/head.S

+ 0 - 17
arch/powerpc/kernel/head_32.S

@@ -762,23 +762,6 @@ load_up_altivec:
 	/* we haven't used ctr or xer or lr */
 	b	fast_exception_return
 
-/*
- * AltiVec unavailable trap from kernel - print a message, but let
- * the task use AltiVec in the kernel until it returns to user mode.
- */
-KernelAltiVec:
-	lwz	r3,_MSR(r1)
-	oris	r3,r3,MSR_VEC@h
-	stw	r3,_MSR(r1)	/* enable use of AltiVec after return */
-	lis	r3,87f@h
-	ori	r3,r3,87f@l
-	mr	r4,r2		/* current */
-	lwz	r5,_NIP(r1)
-	bl	printk
-	b	ret_from_except
-87:	.string	"AltiVec used in kernel  (task=%p, pc=%x)  \n"
-	.align	4,0
-
 /*
  * giveup_altivec(tsk)
  * Disable AltiVec for the task given as the argument,

+ 0 - 17
arch/ppc/kernel/head.S

@@ -700,23 +700,6 @@ load_up_altivec:
 	/* we haven't used ctr or xer or lr */
 	b	fast_exception_return
 
-/*
- * AltiVec unavailable trap from kernel - print a message, but let
- * the task use AltiVec in the kernel until it returns to user mode.
- */
-KernelAltiVec:
-	lwz	r3,_MSR(r1)
-	oris	r3,r3,MSR_VEC@h
-	stw	r3,_MSR(r1)	/* enable use of AltiVec after return */
-	lis	r3,87f@h
-	ori	r3,r3,87f@l
-	mr	r4,r2		/* current */
-	lwz	r5,_NIP(r1)
-	bl	printk
-	b	ret_from_except
-87:	.string	"AltiVec used in kernel  (task=%p, pc=%x)  \n"
-	.align	4,0
-
 /*
  * giveup_altivec(tsk)
  * Disable AltiVec for the task given as the argument,