aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clocksource/timer-riscv.c
diff options
context:
space:
mode:
authorPaul Walmsley <paul.walmsley@sifive.com>2019-10-28 13:53:50 -0700
committerPaul Walmsley <paul.walmsley@sifive.com>2019-11-05 09:11:18 -0800
commit0c3ac28931d578324e93afab6ee7b740dfdaff6f (patch)
tree39a42979a74776968705dba4eb44444e7bc9af18 /drivers/clocksource/timer-riscv.c
parentriscv: enter WFI in default_power_off() if SBI does not shutdown (diff)
downloadlinux-dev-0c3ac28931d578324e93afab6ee7b740dfdaff6f.tar.xz
linux-dev-0c3ac28931d578324e93afab6ee7b740dfdaff6f.zip
riscv: separate MMIO functions into their own header file
Separate the low-level MMIO static inline functions and macros, such as {read,write}{b,w,l,q}(), into their own header file under arch/riscv/include: asm/mmio.h. This is done to break a header dependency chain that arises when both asm/pgtable.h and asm/io.h are included by asm/timex.h. Since the problem is related to the legacy I/O port support in asm/io.h, this allows files under arch/riscv that encounter those issues to simply include asm/mmio.h instead, and bypass the legacy I/O port functions. Existing users of asm/io.h don't need to change anything, since asm/mmio.h is included by asm/io.h. While here, clean up some checkpatch.pl-related issues with the original code. Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
Diffstat (limited to 'drivers/clocksource/timer-riscv.c')
0 files changed, 0 insertions, 0 deletions