]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - kernel/time/clockevents.c
clockevents: Make clockevents_config() static
authorNicolai Stange <nicstange@gmail.com>
Mon, 6 Feb 2017 21:12:04 +0000 (22:12 +0100)
committerJohn Stultz <john.stultz@linaro.org>
Thu, 23 Mar 2017 19:14:05 +0000 (12:14 -0700)
commit0695bd99c0d22bef4d9d4c72cf537b722ba98531
tree05e423d21b09d18f6dc3dc47a65252a391acb531
parenta17e0178fa2898bd8c4ccaaefa83c729759a361c
clockevents: Make clockevents_config() static

A clockevent device's rate should be configured before or at registration
and changed afterwards through clockevents_update_freq() only.

For the configuration at registration, we already have
clockevents_config_and_register().

Right now, there are no clockevents_config() users outside of the
clockevents core.

To mitigiate the risk of drivers errorneously reconfiguring their rates
through clockevents_config() *after* device registration, make
clockevents_config() static.

Signed-off-by: Nicolai Stange <nicstange@gmail.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
include/linux/clockchips.h
kernel/time/clockevents.c