mirror-linux/arch/hexagon/include/asm
Nathan Chancellor 51f2ec5934 hexagon: clean up timer-regs.h
When building allmodconfig, there is a warning about TIMER_ENABLE being
redefined:

  drivers/clocksource/timer-oxnas-rps.c:39:9: error: 'TIMER_ENABLE' macro redefined [-Werror,-Wmacro-redefined]
  #define TIMER_ENABLE            BIT(7)
          ^
  arch/hexagon/include/asm/timer-regs.h:13:9: note: previous definition is here
  #define TIMER_ENABLE            0
           ^
  1 error generated.

The values in this header are only used in one file each, if they are
used at all.  Remove the header and sink all of the constants into their
respective files.

TCX0_CLK_RATE is only used in arch/hexagon/include/asm/timex.h

TIMER_ENABLE, RTOS_TIMER_INT, RTOS_TIMER_REGS_ADDR are only used in
arch/hexagon/kernel/time.c.

SLEEP_CLK_RATE and TIMER_CLR_ON_MATCH have both been unused since the
file's introduction in commit 71e4a47f32 ("Hexagon: Add time and timer
functions").

TIMER_ENABLE is redefined as BIT(0) so the shift is moved into the
definition, rather than its use.

Link: https://lkml.kernel.org/r/20211115174250.1994179-3-nathan@kernel.org
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Acked-by: Brian Cain <bcain@codeaurora.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-11-20 10:35:54 -08:00
..
Kbuild local64.h: make <asm/local64.h> mandatory 2020-12-29 15:36:49 -08:00
asm-offsets.h
atomic.h locking/atomic: hexagon: move to ARCH_ATOMIC 2021-05-26 13:20:51 +02:00
bitops.h hexagon: parenthesize registers in asm predicates 2020-01-04 13:55:09 -08:00
cache.h
cacheflush.h hexagon: use asm-generic/cacheflush.h 2020-06-08 11:05:57 -07:00
checksum.h unify generic instances of csum_partial_copy_nocheck() 2020-08-20 15:45:14 -04:00
cmpxchg.h locking/atomic: hexagon: move to ARCH_ATOMIC 2021-05-26 13:20:51 +02:00
delay.h
dma.h
elf.h whack-a-mole: USE_ELF_CORE_DUMP 2020-10-25 20:03:05 -04:00
exec.h
fixmap.h mm: pgtable: add shortcuts for accessing kernel PMD and PTE 2020-06-09 09:39:13 -07:00
fpu.h
futex.h Hexagon: change jumps to must-extend in futex_atomic_* 2021-05-03 11:04:19 -05:00
hexagon_vm.h
intrinsics.h
io.h mm: remove xlate_dev_kmem_ptr() 2021-05-07 00:26:34 -07:00
irq.h
irqflags.h
kgdb.h
linkage.h
mem-layout.h
mmu.h
mmu_context.h hexagon: use asm-generic/mmu_context.h for no-op implementations 2020-10-27 16:02:35 +01:00
page.h mm/vma: define a default value for VM_DATA_DEFAULT_FLAGS 2020-04-10 15:36:21 -07:00
perf_event.h
pgalloc.h asm-generic: pgalloc: provide generic pgd_free() 2020-08-07 11:33:26 -07:00
pgtable.h mm/thp: define default pmd_pgtable() 2021-07-01 11:06:03 -07:00
processor.h sched: Add wrapper for get_wchan() to keep task blocked 2021-10-15 11:25:14 +02:00
smp.h
spinlock.h hexagon: parenthesize registers in asm predicates 2020-01-04 13:55:09 -08:00
spinlock_types.h
string.h
suspend.h
switch_to.h
syscall.h hexagon: define syscall_get_error() and syscall_get_return_value() 2019-07-16 19:23:24 -07:00
thread_info.h hexagon: add support for TIF_NOTIFY_SIGNAL 2020-11-09 08:16:55 -07:00
time.h
timex.h hexagon: clean up timer-regs.h 2021-11-20 10:35:54 -08:00
tlb.h
tlbflush.h
traps.h
uaccess.h asm-generic: remove extra strn{cpy_from,len}_user declarations 2021-07-27 23:01:13 +02:00
vdso.h
vermagic.h arch: split MODULE_ARCH_VERMAGIC definitions out to <asm/vermagic.h> 2020-04-23 10:50:26 +09:00
vm_fault.h
vm_mmu.h
vmalloc.h mm/vmalloc: Add empty <asm/vmalloc.h> headers and use them from <linux/vmalloc.h> 2019-12-10 10:12:55 +01:00