From: Steven Rostedt Date: Fri, 13 Feb 2009 14:31:39 +0000 (-0800) Subject: powerpc, ftrace: use unsigned int for instruction manipulation X-Git-Tag: v2.6.30-rc1~619^2~97 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b54dcfe108b1b72c9d891dce1034aa5679c0d7db;p=pandora-kernel.git powerpc, ftrace: use unsigned int for instruction manipulation The original port of ftrace to PowerPC kept a lot of the code used by x86. Some of this code was to handle x86's 5 byte instruction. This was handled by using character arrays to manipulate the code. PowerPC has a consistent 4 byte instruction. Using unsigned ints makes the code more efficient as well as more readable. By converting to use unsigned ints to represent instructions, I was able to remove the side effects that were needed for manipulating character strings. i.e. memcpy and memcmp Signed-off-by: Steven Rostedt Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed