linux-kernelorg-stable/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
cache.h
cacheflush.h
checksum.h
cmpxchg.h locking/atomic: hexagon: move to ARCH_ATOMIC 2021-05-26 13:20:51 +02:00
delay.h
dma.h
elf.h
exec.h
fixmap.h
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
page.h
perf_event.h
pgalloc.h
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
spinlock_types.h
string.h
suspend.h
switch_to.h
syscall.h
thread_info.h
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
vm_fault.h
vm_mmu.h
vmalloc.h