@@ -298,8 +298,10 @@ struct cpufreq_policy *cpufreq_cpu_acquire(unsigned int cpu)
298298 * EXTERNALLY AFFECTING FREQUENCY CHANGES *
299299 *********************************************************************/
300300
301- /*
302- * adjust_jiffies - adjust the system "loops_per_jiffy"
301+ /**
302+ * adjust_jiffies - Adjust the system "loops_per_jiffy".
303+ * @val: CPUFREQ_PRECHANGE or CPUFREQ_POSTCHANGE.
304+ * @ci: Frequency change information.
303305 *
304306 * This function alters the system "loops_per_jiffy" for the clock
305307 * speed change. Note that loops_per_jiffy cannot be updated on SMP
@@ -331,14 +333,14 @@ static void adjust_jiffies(unsigned long val, struct cpufreq_freqs *ci)
331333}
332334
333335/**
334- * cpufreq_notify_transition - Notify frequency transition and adjust_jiffies .
336+ * cpufreq_notify_transition - Notify frequency transition and adjust jiffies .
335337 * @policy: cpufreq policy to enable fast frequency switching for.
336338 * @freqs: contain details of the frequency update.
337339 * @state: set to CPUFREQ_PRECHANGE or CPUFREQ_POSTCHANGE.
338340 *
339- * This function calls the transition notifiers and the " adjust_jiffies"
340- * function. It is called twice on all CPU frequency changes that have
341- * external effects.
341+ * This function calls the transition notifiers and adjust_jiffies().
342+ *
343+ * It is called twice on all CPU frequency changes that have external effects.
342344 */
343345static void cpufreq_notify_transition (struct cpufreq_policy * policy ,
344346 struct cpufreq_freqs * freqs ,
@@ -1646,13 +1648,12 @@ static void cpufreq_remove_dev(struct device *dev, struct subsys_interface *sif)
16461648}
16471649
16481650/**
1649- * cpufreq_out_of_sync - If actual and saved CPU frequency differs, we're
1650- * in deep trouble.
1651- * @policy: policy managing CPUs
1652- * @new_freq: CPU frequency the CPU actually runs at
1651+ * cpufreq_out_of_sync - Fix up actual and saved CPU frequency difference.
1652+ * @policy: Policy managing CPUs.
1653+ * @new_freq: New CPU frequency.
16531654 *
1654- * We adjust to current frequency first, and need to clean up later.
1655- * So either call to cpufreq_update_policy() or schedule handle_update() ).
1655+ * Adjust to the current frequency first and clean up later by either calling
1656+ * cpufreq_update_policy(), or scheduling handle_update().
16561657 */
16571658static void cpufreq_out_of_sync (struct cpufreq_policy * policy ,
16581659 unsigned int new_freq )
@@ -1832,7 +1833,7 @@ int cpufreq_generic_suspend(struct cpufreq_policy *policy)
18321833EXPORT_SYMBOL (cpufreq_generic_suspend );
18331834
18341835/**
1835- * cpufreq_suspend() - Suspend CPUFreq governors
1836+ * cpufreq_suspend() - Suspend CPUFreq governors.
18361837 *
18371838 * Called during system wide Suspend/Hibernate cycles for suspending governors
18381839 * as some platforms can't change frequency after this point in suspend cycle.
@@ -1868,7 +1869,7 @@ void cpufreq_suspend(void)
18681869}
18691870
18701871/**
1871- * cpufreq_resume() - Resume CPUFreq governors
1872+ * cpufreq_resume() - Resume CPUFreq governors.
18721873 *
18731874 * Called during system wide Suspend/Hibernate cycle for resuming governors that
18741875 * are suspended with cpufreq_suspend().
@@ -1920,10 +1921,10 @@ bool cpufreq_driver_test_flags(u16 flags)
19201921}
19211922
19221923/**
1923- * cpufreq_get_current_driver - return current driver's name
1924+ * cpufreq_get_current_driver - Return the current driver's name.
19241925 *
1925- * Return the name string of the currently loaded cpufreq driver
1926- * or NULL, if none.
1926+ * Return the name string of the currently registered cpufreq driver or NULL if
1927+ * none.
19271928 */
19281929const char * cpufreq_get_current_driver (void )
19291930{
@@ -1935,10 +1936,10 @@ const char *cpufreq_get_current_driver(void)
19351936EXPORT_SYMBOL_GPL (cpufreq_get_current_driver );
19361937
19371938/**
1938- * cpufreq_get_driver_data - return current driver data
1939+ * cpufreq_get_driver_data - Return current driver data.
19391940 *
1940- * Return the private data of the currently loaded cpufreq
1941- * driver, or NULL if no cpufreq driver is loaded .
1941+ * Return the private data of the currently registered cpufreq driver, or NULL
1942+ * if no cpufreq driver has been registered .
19421943 */
19431944void * cpufreq_get_driver_data (void )
19441945{
@@ -1954,17 +1955,16 @@ EXPORT_SYMBOL_GPL(cpufreq_get_driver_data);
19541955 *********************************************************************/
19551956
19561957/**
1957- * cpufreq_register_notifier - register a driver with cpufreq
1958- * @nb: notifier function to register
1959- * @list: CPUFREQ_TRANSITION_NOTIFIER or CPUFREQ_POLICY_NOTIFIER
1958+ * cpufreq_register_notifier - Register a notifier with cpufreq.
1959+ * @nb: notifier function to register.
1960+ * @list: CPUFREQ_TRANSITION_NOTIFIER or CPUFREQ_POLICY_NOTIFIER.
19601961 *
1961- * Add a driver to one of two lists: either a list of drivers that
1962- * are notified about clock rate changes (once before and once after
1963- * the transition), or a list of drivers that are notified about
1964- * changes in cpufreq policy.
1962+ * Add a notifier to one of two lists: either a list of notifiers that run on
1963+ * clock rate changes (once before and once after every transition), or a list
1964+ * of notifiers that ron on cpufreq policy changes.
19651965 *
1966- * This function may sleep, and has the same return conditions as
1967- * blocking_notifier_chain_register.
1966+ * This function may sleep and it has the same return values as
1967+ * blocking_notifier_chain_register() .
19681968 */
19691969int cpufreq_register_notifier (struct notifier_block * nb , unsigned int list )
19701970{
@@ -2001,14 +2001,14 @@ int cpufreq_register_notifier(struct notifier_block *nb, unsigned int list)
20012001EXPORT_SYMBOL (cpufreq_register_notifier );
20022002
20032003/**
2004- * cpufreq_unregister_notifier - unregister a driver with cpufreq
2005- * @nb: notifier block to be unregistered
2006- * @list: CPUFREQ_TRANSITION_NOTIFIER or CPUFREQ_POLICY_NOTIFIER
2004+ * cpufreq_unregister_notifier - Unregister a notifier from cpufreq.
2005+ * @nb: notifier block to be unregistered.
2006+ * @list: CPUFREQ_TRANSITION_NOTIFIER or CPUFREQ_POLICY_NOTIFIER.
20072007 *
2008- * Remove a driver from the CPU frequency notifier list .
2008+ * Remove a notifier from one of the cpufreq notifier lists .
20092009 *
2010- * This function may sleep, and has the same return conditions as
2011- * blocking_notifier_chain_unregister.
2010+ * This function may sleep and it has the same return values as
2011+ * blocking_notifier_chain_unregister() .
20122012 */
20132013int cpufreq_unregister_notifier (struct notifier_block * nb , unsigned int list )
20142014{
0 commit comments