2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-10 06:34:17 +08:00
linux-next/arch/m68k
Arnd Bergmann 0774a6ed29 timekeeping: default GENERIC_CLOCKEVENTS to enabled
Almost all machines use GENERIC_CLOCKEVENTS, so it feels wrong to
require each one to select that symbol manually.

Instead, enable it whenever CONFIG_LEGACY_TIMER_TICK is disabled as
a simplification. It should be possible to select both
GENERIC_CLOCKEVENTS and LEGACY_TIMER_TICK from an architecture now
and decide at runtime between the two.

For the clockevents arch-support.txt file, this means that additional
architectures are marked as TODO when they have at least one machine
that still uses LEGACY_TIMER_TICK, rather than being marked 'ok' when
at least one machine has been converted. This means that both m68k and
arm (for riscpc) revert to TODO.

At this point, we could just always enable CONFIG_GENERIC_CLOCKEVENTS
rather than leaving it off when not needed. I built an m68k
defconfig kernel (using gcc-10.1.0) and found that this would add
around 5.5KB in kernel image size:

   text	   data	    bss	    dec	    hex	filename
3861936	1092236	 196656	5150828	 4e986c	obj-m68k/vmlinux-no-clockevent
3866201	1093832	 196184	5156217	 4ead79	obj-m68k/vmlinux-clockevent

On Arm (MACH_RPC), that difference appears to be twice as large,
around 11KB on top of an 6MB vmlinux.

Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2020-10-30 21:57:07 +01:00
..
68000 m68k: remove timer_interrupt() function 2020-10-30 21:57:06 +01:00
amiga m68k: remove timer_interrupt() function 2020-10-30 21:57:06 +01:00
apollo m68k: remove timer_interrupt() function 2020-10-30 21:57:06 +01:00
atari m68k: remove timer_interrupt() function 2020-10-30 21:57:06 +01:00
bvme6000 m68k: remove timer_interrupt() function 2020-10-30 21:57:06 +01:00
coldfire m68k: remove timer_interrupt() function 2020-10-30 21:57:06 +01:00
configs ide/macide: Convert Mac IDE driver to platform driver 2020-09-28 10:48:17 +02:00
emu block: move ->make_request_fn to struct block_device_operations 2020-07-01 07:27:24 -06:00
fpsp040 License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hp300 m68k: remove timer_interrupt() function 2020-10-30 21:57:06 +01:00
ifpsp060 scripts/spelling.txt: add regsiter -> register spelling mistake 2017-05-08 17:15:13 -07:00
include m68k: remove timer_interrupt() function 2020-10-30 21:57:06 +01:00
kernel m68k: remove timer_interrupt() function 2020-10-30 21:57:06 +01:00
lib m68k: get rid of zeroing destination on error in csum_and_copy_from_user() 2020-08-20 15:45:17 -04:00
mac m68k: remove timer_interrupt() function 2020-10-30 21:57:06 +01:00
math-emu treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 74 2019-05-24 17:36:47 +02:00
mm m68k updates for v5.10 2020-10-12 10:10:56 -07:00
mvme16x m68k: remove timer_interrupt() function 2020-10-30 21:57:06 +01:00
mvme147 m68k: remove timer_interrupt() function 2020-10-30 21:57:06 +01:00
q40 m68k: remove timer_interrupt() function 2020-10-30 21:57:06 +01:00
sun3 m68k: remove timer_interrupt() function 2020-10-30 21:57:06 +01:00
sun3x m68k: remove timer_interrupt() function 2020-10-30 21:57:06 +01:00
tools/amiga m68k: tools: Replace zero-length array with flexible-array member 2020-05-25 10:55:56 +02:00
install.sh
Kbuild m68k: sun3: Descend to prom from arch/m68k/sun3 2020-07-13 11:39:12 +02:00
Kconfig Merge branch 'work.set_fs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2020-10-22 09:59:21 -07:00
Kconfig.bus m68k: Fix Kconfig indentation 2020-03-09 11:12:19 +01:00
Kconfig.cpu timekeeping: default GENERIC_CLOCKEVENTS to enabled 2020-10-30 21:57:07 +01:00
Kconfig.debug m68k: Fix Kconfig indentation 2020-03-09 11:12:19 +01:00
Kconfig.devices treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Kconfig.machine m68k: change remaining timers to legacy_timer_tick 2020-10-30 21:57:06 +01:00
Makefile kbuild: preprocess module linker script 2020-09-25 00:36:41 +09:00