cpufreq-nforce2.c (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) | cpufreq-nforce2.c (1e4f63aecb53e48468661e922fc2fa3b83e55722) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * (C) 2004-2006 Sebastian Witt <se.witt@gmx.net> 4 * 5 * Based upon reverse engineered information 6 * 7 * BIG FAT DISCLAIMER: Work in progress code. Possibly *dangerous* 8 */ --- 277 unchanged lines hidden (view full) --- 286 287 return 0; 288} 289 290/** 291 * nforce2_verify - verifies a new CPUFreq policy 292 * @policy: new policy 293 */ | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * (C) 2004-2006 Sebastian Witt <se.witt@gmx.net> 4 * 5 * Based upon reverse engineered information 6 * 7 * BIG FAT DISCLAIMER: Work in progress code. Possibly *dangerous* 8 */ --- 277 unchanged lines hidden (view full) --- 286 287 return 0; 288} 289 290/** 291 * nforce2_verify - verifies a new CPUFreq policy 292 * @policy: new policy 293 */ |
294static int nforce2_verify(struct cpufreq_policy *policy) | 294static int nforce2_verify(struct cpufreq_policy_data *policy) |
295{ 296 unsigned int fsb_pol_max; 297 298 fsb_pol_max = policy->max / (fid * 100); 299 300 if (policy->min < (fsb_pol_max * fid * 100)) 301 policy->max = (fsb_pol_max + 1) * fid * 100; 302 --- 136 unchanged lines hidden --- | 295{ 296 unsigned int fsb_pol_max; 297 298 fsb_pol_max = policy->max / (fid * 100); 299 300 if (policy->min < (fsb_pol_max * fid * 100)) 301 policy->max = (fsb_pol_max + 1) * fid * 100; 302 --- 136 unchanged lines hidden --- |