OSDN Git Service

xtensa: add -mno-serialize-volatile to CFLAGS
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 28 Apr 2017 16:40:00 +0000 (09:40 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Sun, 10 Dec 2017 07:55:56 +0000 (23:55 -0800)
commit7bf5234db7cce45fa9ff237ce0f45da2bd277cad
tree2b376172285d3d145e3c5ace2ed2307da276dae9
parentbebc6082da0a9f5d47a1ea2edc099bf671058bd4
xtensa: add -mno-serialize-volatile to CFLAGS

By default xtensa gcc inserts memw for all volatile object accesses.
This is too pessimistic for the kernel: there should be no "normal"
volatile objects, and all special objects, like MMIO or objects shared
between CPUs should have explicit barriers.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/Makefile