freq_table.c (5acac83bf2e42f51ab9fd315d657798754bf0bb8) | freq_table.c (a95d8f581901c560ff1b63bc02107eb34a6efb1b) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * linux/drivers/cpufreq/freq_table.c 4 * 5 * Copyright (C) 2002 - 2003 Dominik Brodowski 6 */ 7 8#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt --- 253 unchanged lines hidden (view full) --- 262 263} 264 265#define cpufreq_attr_available_freq(_name) \ 266struct freq_attr cpufreq_freq_attr_##_name##_freqs = \ 267__ATTR_RO(_name##_frequencies) 268 269/* | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * linux/drivers/cpufreq/freq_table.c 4 * 5 * Copyright (C) 2002 - 2003 Dominik Brodowski 6 */ 7 8#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt --- 253 unchanged lines hidden (view full) --- 262 263} 264 265#define cpufreq_attr_available_freq(_name) \ 266struct freq_attr cpufreq_freq_attr_##_name##_freqs = \ 267__ATTR_RO(_name##_frequencies) 268 269/* |
270 * show_scaling_available_frequencies - show available normal frequencies for | 270 * scaling_available_frequencies_show - show available normal frequencies for |
271 * the specified CPU 272 */ 273static ssize_t scaling_available_frequencies_show(struct cpufreq_policy *policy, 274 char *buf) 275{ 276 return show_available_freqs(policy, buf, false); 277} 278cpufreq_attr_available_freq(scaling_available); 279EXPORT_SYMBOL_GPL(cpufreq_freq_attr_scaling_available_freqs); 280 281/* | 271 * the specified CPU 272 */ 273static ssize_t scaling_available_frequencies_show(struct cpufreq_policy *policy, 274 char *buf) 275{ 276 return show_available_freqs(policy, buf, false); 277} 278cpufreq_attr_available_freq(scaling_available); 279EXPORT_SYMBOL_GPL(cpufreq_freq_attr_scaling_available_freqs); 280 281/* |
282 * show_available_boost_freqs - show available boost frequencies for | 282 * scaling_boost_frequencies_show - show available boost frequencies for |
283 * the specified CPU 284 */ 285static ssize_t scaling_boost_frequencies_show(struct cpufreq_policy *policy, 286 char *buf) 287{ 288 return show_available_freqs(policy, buf, true); 289} 290cpufreq_attr_available_freq(scaling_boost); --- 80 unchanged lines hidden --- | 283 * the specified CPU 284 */ 285static ssize_t scaling_boost_frequencies_show(struct cpufreq_policy *policy, 286 char *buf) 287{ 288 return show_available_freqs(policy, buf, true); 289} 290cpufreq_attr_available_freq(scaling_boost); --- 80 unchanged lines hidden --- |