1. 22 6月, 2015 1 次提交
    • P
      clocksource: Increase dependencies of timer-stm32 to limit build wreckage · 1cb6c215
      Paul Gortmaker 提交于
      This driver leaks out into arch/parisc builds that don't have
      CONFIG_GENERIC_CLOCKEVENTS, leading to the following (truncated)
      wreckage:
      
        CC      drivers/clocksource/timer-stm32.o
      drivers/clocksource/timer-stm32.c:38:28: error: field 'evtdev' has incomplete type
      drivers/clocksource/timer-stm32.c:44:19: warning: 'enum clock_event_mode' declared inside parameter list
      drivers/clocksource/timer-stm32.c:44:19: warning: its scope is only this definition or declaration, which is probably not what you want
      drivers/clocksource/timer-stm32.c:43:62: error: parameter 1 ('mode') has incomplete type
      drivers/clocksource/timer-stm32.c:43:13: error: function declaration isn't a prototype
      drivers/clocksource/timer-stm32.c: In function 'stm32_clock_event_set_mode':
      drivers/clocksource/timer-stm32.c:47:3: error: type defaults to 'int' in declaration of '__mptr'
      drivers/clocksource/timer-stm32.c:47:3: warning: initialization from incompatible pointer type
      drivers/clocksource/timer-stm32.c:51:7: error: 'CLOCK_EVT_MODE_PERIODIC' undeclared (first use in this function)
      drivers/clocksource/timer-stm32.c:51:7: note: each undeclared identifier is reported only once for each function it appears in
      drivers/clocksource/timer-stm32.c:56:7: error: 'CLOCK_EVT_MODE_ONESHOT' undeclared (first use in this function)
      
      Tighten up the dependencies to limit where it gets built by copying
      the style of the Kconfig line for CLKSRC_EFM32 a few lines above.
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Chanwoo Choi <cw00.choi@samsung.com>
      Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
      Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
      Link: http://lkml.kernel.org/r/1434841352-24300-1-git-send-email-paul.gortmaker@windriver.comSigned-off-by: NThomas Gleixner <tglx@linutronix.de>
      1cb6c215
  2. 02 6月, 2015 8 次提交
  3. 05 5月, 2015 3 次提交
  4. 06 4月, 2015 1 次提交
  5. 03 4月, 2015 2 次提交
  6. 01 4月, 2015 2 次提交
  7. 31 3月, 2015 11 次提交
  8. 26 3月, 2015 3 次提交
  9. 17 3月, 2015 3 次提交
  10. 13 3月, 2015 1 次提交
  11. 05 3月, 2015 3 次提交
  12. 25 2月, 2015 2 次提交
    • R
      clocksource: pxa: Fix section mismatch · 6f2116eb
      Robert Jarzmik 提交于
      As pxa_timer_common_init() is only called in init context, mark it as
      such, and quiesce the compiler warnings :
      WARNING: vmlinux.o(.text.unlikely+0x45d4): Section mismatch in reference
      from the function pxa_timer_common_init() to the function
      .init.text:sched_clock_register()
      
      WARNING: vmlinux.o(.text.unlikely+0x4610): Section mismatch in reference
      from the function pxa_timer_common_init() to the function
      .init.text:clocksource_mmio_init()
      Signed-off-by: NRobert Jarzmik <robert.jarzmik@free.fr>
      Signed-off-by: NDaniel Lezcano <daniel.lezcano@linaro.org>
      6f2116eb
    • M
      clocksource: mtk: Fix race conditions in probe code · d4a19eb3
      Matthias Brugger 提交于
      We have two race conditions in the probe code which could lead to a null
      pointer dereference in the interrupt handler.
      
      The interrupt handler accesses the clockevent device, which may not yet be
      registered.
      
      First race condition happens when the interrupt handler gets registered before
      the interrupts get disabled. The second race condition happens when the
      interrupts get enabled, but the clockevent device is not yet registered.
      
      Fix that by disabling the interrupts before we register the interrupt and enable
      the interrupts after the clockevent device got registered.
      Reported-by: NGongbae Park <yongbae2@gmail.com>
      Signed-off-by: NMatthias Brugger <matthias.bgg@gmail.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: NDaniel Lezcano <daniel.lezcano@linaro.org>
      d4a19eb3