1. Apr 27, 2020
  2. Apr 15, 2020
  3. Apr 09, 2020
  4. Mar 28, 2020
  5. Mar 24, 2020
    • Vincenzo Frascino's avatar
      vdso: Fix clocksource.h macro detection · ca214e2c
      Vincenzo Frascino authored
      CONFIG_GENERIC_GETTIMEOFDAY is a sufficient condition to verify if an
      architecture implements asm/vdso/clocksource.h or not. The current
      implementation wrongly assumes that the same is true for the config
      option CONFIG_ARCH_CLOCKSOURCE_DATA.
      
      This results in a series of build errors on ia64/sparc/sparc64 like this:
      
        In file included from ./include/linux/clocksource.h:31,
                         from ./include/linux/clockchips.h:14,
                         from ./include/linux/tick.h:8,
                         from fs/proc/stat.c:15:
        ./include/vdso/clocksource.h:9:10: fatal error: asm/vdso/clocksource.h:
        No such file or directory
            9 | #include <asm/vdso/clocksource.h>
              |          ^~~~~~~~~~~~~~~~~~~~~~~~
      
      Fix the issue removing the unneeded config condition.
      
      Fixes: 14ee2ac6
      
       ("linux/clocksource.h: Extract common header for vDSO")
      Reported-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Signed-off-by: default avatarVincenzo Frascino <vincenzo.frascino@arm.com>
      Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
      Link: https://lkml.kernel.org/r/20200323133920.46546-1-vincenzo.frascino@arm.com
      ca214e2c
    • Vincenzo Frascino's avatar
      um: Fix header inclusion · 1c1a18b0
      Vincenzo Frascino authored
      User Mode Linux is a flavor of x86 that from the vDSO prospective always
      falls back on system calls. This implies that it does not require any
      of the unified vDSO definitions and their inclusion causes side effects
      like this:
      
        In file included from include/vdso/processor.h:10:0,
                            from include/vdso/datapage.h:17,
                            from arch/x86/include/asm/vgtod.h:7,
                            from arch/x86/um/../kernel/sys_ia32.c:49:
        >> arch/x86/include/asm/vdso/processor.h:11:29: error: redefinition of 'rep_nop'
            static __always_inline void rep_nop(void)
                                        ^~~~~~~
           In file included from include/linux/rcupdate.h:30:0,
                            from include/linux/rculist.h:11,
                            from include/linux/pid.h:5,
                            from include/linux/sched.h:14,
                            from arch/x86/um/../kernel/sys_ia32.c:25:
           arch/x86/um/asm/processor.h:24:20: note: previous definition of 'rep_nop' was here
            static inline void rep_nop(void)
      
      Make sure that the unnecessary headers are not included when um is built
      to address the problem.
      
      Fixes: abc22418
      
       ("x86/vdso: Enable x86 to use common headers")
      Reported-by: default avatarkbuild test robot <lkp@intel.com>
      Signed-off-by: default avatarVincenzo Frascino <vincenzo.frascino@arm.com>
      Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
      Link: https://lkml.kernel.org/r/20200323124109.7104-1-vincenzo.frascino@arm.com
      1c1a18b0
  6. Mar 21, 2020
  7. Mar 20, 2020
  8. Mar 19, 2020
    • Ahmed S. Darwish's avatar
      time/sched_clock: Expire timer in hardirq context · 2c8bd588
      Ahmed S. Darwish authored
      
      
      To minimize latency, PREEMPT_RT kernels expires hrtimers in preemptible
      softirq context by default. This can be overriden by marking the timer's
      expiry with HRTIMER_MODE_HARD.
      
      sched_clock_timer is missing this annotation: if its callback is preempted
      and the duration of the preemption exceeds the wrap around time of the
      underlying clocksource, sched clock will get out of sync.
      
      Mark the sched_clock_timer for expiry in hard interrupt context.
      
      Signed-off-by: default avatarAhmed S. Darwish <a.darwish@linutronix.de>
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Link: https://lkml.kernel.org/r/20200309181529.26558-1-a.darwish@linutronix.de
      2c8bd588
    • Thomas Gleixner's avatar
      Merge tag 'timers-v5.7' of https://git.linaro.org/people/daniel.lezcano/linux into timers/core · 048495eb
      Thomas Gleixner authored
      Pull clockevent/clocksource updates from Daniel Lezcano:
      
      - Avoid creating dead devices by flagging the driver with OF_POPULATED
        in order to prevent the platform to create another device (Saravana Kannan)
      
      - Remove unused includes from imx family drivers (Anson Huang)
      
      - timer-dm-ti rework to prepare for pwm and suspend support (Lokesh Vutla)
      
      - Fix the rate for the global clock on the pit64b (Claudiu Beznea)
      
      - Fix timer-cs5535 by requesting an irq with non-NULL dev_id (Afzal Mohammed)
      
      - Replace setup_irq() by request_irq() (Afzal Mohammed)
      
      - Add support for the TCU of X1000 (Zhou Yanjie)
      
      - Drop the bogus omap_dm_timer_of_set_source() function (Suman Anna)
      
      - Do not update the counter when updating the period in order to
        prevent a disruption when the pwm is used (Lokesh Vutla)
      
      - Improve owl_timer_init() failure messages (Matheus Castello)
      
      - Add driver for the Ingenic JZ47xx OST (Maarten ter Huurne)
      
      - Pass the interrupt and the shutdown callbacks in the init function
        for ast2600 support (Joel Stanley)
      
      - Add the ast2600 compatible string for the fttmr010 (Joel Stanley)
      048495eb
  9. Mar 17, 2020