]> git.baikalelectronics.ru Git - kernel.git/commit
ring-buffer: Remove HAVE_64BIT_ALIGNED_ACCESS
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 28 May 2019 13:36:19 +0000 (09:36 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 28 May 2019 13:36:19 +0000 (09:36 -0400)
commitd8c295f622d78f3b62eea5c3a862551fe943ddb3
tree2c9adf9f4171cc33baeb7ebc6200bc5b3cbafd73
parent721b1be8caade0433d7a1b6322a5609a9e570906
ring-buffer: Remove HAVE_64BIT_ALIGNED_ACCESS

Commit e2401612112e ("Add HAVE_64BIT_ALIGNED_ACCESS") added the config for
architectures that required 64bit aligned access for all 64bit words. As
the ftrace ring buffer stores data on 4 byte alignment, this config option
was used to force it to store data on 8 byte alignment to make sure the data
being stored and written directly into the ring buffer was 8 byte aligned as
it would cause issues trying to write an 8 byte word on a 4 not 8 byte
aligned memory location.

But with the removal of the metag architecture, which was the only
architecture to use this, there is no architecture supported by Linux that
requires 8 byte aligne access for all 8 byte words (4 byte alignment is good
enough). Removing this config can simplify the code a bit.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
arch/Kconfig
kernel/trace/ring_buffer.c