aboutsummaryrefslogtreecommitdiffstats
path: root/init/calibrate.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-07-24 05:42:34 -0400
committerTakashi Iwai <tiwai@suse.de>2013-07-24 05:42:34 -0400
commit43cbd286fbba4bfb0c2ef05dc62522dfd5a2c000 (patch)
tree7184a24f04c72987e725e50e66db530e6f618220 /init/calibrate.c
parentfee4b700a4e9e446151eb5a03874ca8666323113 (diff)
parentc5ae4dca11523dff15cfb1763b64a71b805976aa (diff)
Merge tag 'asoc-v3.11-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Updates for v3.11 A few small updates again, the sgtl5000 one fixes some newly triggered issues due to some probe ordering changes which were introduced in the last merge window.
Diffstat (limited to 'init/calibrate.c')
-rw-r--r--init/calibrate.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/init/calibrate.c b/init/calibrate.c
index fda0a7b0f06c..520702db9acc 100644
--- a/init/calibrate.c
+++ b/init/calibrate.c
@@ -31,7 +31,7 @@ __setup("lpj=", lpj_setup);
31#define DELAY_CALIBRATION_TICKS ((HZ < 100) ? 1 : (HZ/100)) 31#define DELAY_CALIBRATION_TICKS ((HZ < 100) ? 1 : (HZ/100))
32#define MAX_DIRECT_CALIBRATION_RETRIES 5 32#define MAX_DIRECT_CALIBRATION_RETRIES 5
33 33
34static unsigned long __cpuinit calibrate_delay_direct(void) 34static unsigned long calibrate_delay_direct(void)
35{ 35{
36 unsigned long pre_start, start, post_start; 36 unsigned long pre_start, start, post_start;
37 unsigned long pre_end, end, post_end; 37 unsigned long pre_end, end, post_end;
@@ -166,7 +166,10 @@ static unsigned long __cpuinit calibrate_delay_direct(void)
166 return 0; 166 return 0;
167} 167}
168#else 168#else
169static unsigned long __cpuinit calibrate_delay_direct(void) {return 0;} 169static unsigned long calibrate_delay_direct(void)
170{
171 return 0;
172}
170#endif 173#endif
171 174
172/* 175/*
@@ -180,7 +183,7 @@ static unsigned long __cpuinit calibrate_delay_direct(void) {return 0;}
180 */ 183 */
181#define LPS_PREC 8 184#define LPS_PREC 8
182 185
183static unsigned long __cpuinit calibrate_delay_converge(void) 186static unsigned long calibrate_delay_converge(void)
184{ 187{
185 /* First stage - slowly accelerate to find initial bounds */ 188 /* First stage - slowly accelerate to find initial bounds */
186 unsigned long lpj, lpj_base, ticks, loopadd, loopadd_base, chop_limit; 189 unsigned long lpj, lpj_base, ticks, loopadd, loopadd_base, chop_limit;
@@ -254,12 +257,12 @@ static DEFINE_PER_CPU(unsigned long, cpu_loops_per_jiffy) = { 0 };
254 * Architectures should override this function if a faster calibration 257 * Architectures should override this function if a faster calibration
255 * method is available. 258 * method is available.
256 */ 259 */
257unsigned long __attribute__((weak)) __cpuinit calibrate_delay_is_known(void) 260unsigned long __attribute__((weak)) calibrate_delay_is_known(void)
258{ 261{
259 return 0; 262 return 0;
260} 263}
261 264
262void __cpuinit calibrate_delay(void) 265void calibrate_delay(void)
263{ 266{
264 unsigned long lpj; 267 unsigned long lpj;
265 static bool printed; 268 static bool printed;