From: James Hogan Date: Wed, 30 May 2012 11:11:19 +0000 (+0100) Subject: trace/ring_buffer: handle 64bit aligned structs X-Git-Tag: v3.9-rc1~7^2~56 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=649508f684751122aa302ab10f0f06cb4a88415b;p=pandora-kernel.git trace/ring_buffer: handle 64bit aligned structs Some 32 bit architectures require 64 bit values to be aligned (for example Meta which has 64 bit read/write instructions). These require 8 byte alignment of event data too, so use !CONFIG_HAVE_64BIT_ALIGNED_ACCESS instead of !CONFIG_64BIT || CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS to decide alignment, and align buffer_data_page::data accordingly. Signed-off-by: James Hogan Cc: Frederic Weisbecker Cc: Ingo Molnar Acked-by: Steven Rostedt (previous version subtly different) --- Reading git-diff-tree failed