[RFC 0/2] Context storage for the clocksource

Alexander Shiyan eagle.alexander923 at gmail.com
Fri Jun 10 01:56:33 PDT 2022


First patch: Implement "ctx" field for struct clocksource and
convert all users to updated structure.

Second patch: Simple example to context usage.

Alexander Shiyan (2):
  clocksource: Introduce a context storage for the clocksource structure
  clocksource: arm_global_timer: Convert driver to use clocksource
    context field

 arch/arm/mach-at91/at91rm9200_time.c        |  4 +--
 arch/arm/mach-davinci/time.c                |  4 +--
 arch/arm/mach-ep93xx/clocksource.c          |  4 +--
 arch/arm/mach-mxs/clocksource-imx23.c       |  4 +--
 arch/arm/mach-mxs/clocksource-imx28.c       |  4 +--
 arch/arm/mach-pxa/clocksource.c             |  4 +--
 arch/arm/mach-samsung/s3c-timer.c           |  4 +--
 arch/arm/mach-tegra/tegra20-timer.c         |  4 +--
 arch/arm/mach-versatile/core.c              |  4 +--
 arch/mips/lib/csrc-r4k.c                    |  4 +--
 arch/mips/mach-xburst/csrc-jz4750.c         |  4 +--
 arch/openrisc/lib/clock.c                   |  4 +--
 arch/powerpc/mach-mpc5xxx/time.c            |  4 +--
 arch/powerpc/mach-mpc85xx/time.c            |  4 +--
 arch/sandbox/board/clock.c                  |  4 +--
 common/clock.c                              | 18 ++++++++-----
 drivers/clocksource/amba-sp804.c            |  4 +--
 drivers/clocksource/arm_architected_timer.c |  4 +--
 drivers/clocksource/arm_global_timer.c      | 29 ++++++++++++---------
 drivers/clocksource/arm_smp_twd.c           |  4 +--
 drivers/clocksource/armv7m_systick.c        |  4 +--
 drivers/clocksource/bcm2835.c               |  4 +--
 drivers/clocksource/clps711x.c              |  4 +--
 drivers/clocksource/digic.c                 |  4 +--
 drivers/clocksource/dw_apb_timer.c          |  4 +--
 drivers/clocksource/efi.c                   |  4 +--
 drivers/clocksource/efi_x86.c               |  4 +--
 drivers/clocksource/kvx_timer.c             |  4 +--
 drivers/clocksource/mvebu.c                 |  4 +--
 drivers/clocksource/nomadik.c               |  4 +--
 drivers/clocksource/orion.c                 |  4 +--
 drivers/clocksource/rk_timer.c              |  4 +--
 drivers/clocksource/timer-atmel-pit.c       |  4 +--
 drivers/clocksource/timer-clint.c           |  4 +--
 drivers/clocksource/timer-imx-gpt.c         |  4 +--
 drivers/clocksource/timer-riscv.c           |  6 ++---
 drivers/clocksource/timer-stm32.c           |  4 +--
 drivers/clocksource/timer-ti-32k.c          |  4 +--
 drivers/clocksource/timer-ti-dm.c           |  4 +--
 drivers/clocksource/uemd.c                  |  4 +--
 include/clock.h                             |  7 ++---
 41 files changed, 109 insertions(+), 99 deletions(-)

-- 
2.32.0




More information about the barebox mailing list