pps: kc: fix non-tickless system config dependency
authorMaciej S. Szmigiero <[email protected]>
Tue, 11 Oct 2016 20:54:30 +0000 (13:54 -0700)
committerLinus Torvalds <[email protected]>
Tue, 11 Oct 2016 22:06:32 +0000 (15:06 -0700)
CONFIG_NO_HZ currently only sets the default value of dynticks config so
if PPS kernel consumer needs periodic timer ticks it should depend on
!CONFIG_NO_HZ_COMMON instead of !CONFIG_NO_HZ.

Otherwise it is possible to enable it even on tickless system which has
CONFIG_NO_HZ not set and CONFIG_NO_HZ_IDLE (or CONFIG_NO_HZ_FULL) set.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Maciej S. Szmigiero <[email protected]>
Acked-by: Rodolfo Giometti <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/pps/Kconfig

index 7512e98e9311055b431ce5eca775a9de508a31be..564a51abeecec3a313e94ffdc1a4e9e0900682bf 100644 (file)
@@ -31,7 +31,7 @@ config PPS_DEBUG
 
 config NTP_PPS
        bool "PPS kernel consumer support"
-       depends on !NO_HZ
+       depends on !NO_HZ_COMMON
        help
          This option adds support for direct in-kernel time
          synchronization using an external PPS signal.