diff options
| author | Scott Rifenbark <scott.m.rifenbark@intel.com> | 2012-04-27 08:06:37 -0600 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-05-01 21:00:34 +0100 |
| commit | 5a1fb95a8dde9f138948de604c2935ce3229e608 (patch) | |
| tree | a0e5e7fe63c9919d3385884c17bb7da91711a82a /documentation/dev-manual | |
| parent | 22b9983cc77881255cc0f136a826ae45561b9b8f (diff) | |
| download | poky-5a1fb95a8dde9f138948de604c2935ce3229e608.tar.gz | |
documentation/dev-manual/dev-manual-kernel-appendix.xml: updated cpuinit
Looks like calibrate_delay(void) changed in the example. Updated
to the most recent code.
(From yocto-docs rev: 402af7d379b0df5e97b1863aa627aad98ceb5e6f)
Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/dev-manual')
| -rw-r--r-- | documentation/dev-manual/dev-manual-kernel-appendix.xml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/documentation/dev-manual/dev-manual-kernel-appendix.xml b/documentation/dev-manual/dev-manual-kernel-appendix.xml index dc9eb26073..1ac529e6a3 100644 --- a/documentation/dev-manual/dev-manual-kernel-appendix.xml +++ b/documentation/dev-manual/dev-manual-kernel-appendix.xml | |||
| @@ -308,10 +308,11 @@ | |||
| 308 | <literallayout class='monospaced'> | 308 | <literallayout class='monospaced'> |
| 309 | void __cpuinit calibrate_delay(void) | 309 | void __cpuinit calibrate_delay(void) |
| 310 | { | 310 | { |
| 311 | unsigned long lpj; | 311 | unsigned long lpj; |
| 312 | static bool printed; | 312 | static bool printed; |
| 313 | int this_cpu = smp_processor_id(); | ||
| 313 | 314 | ||
| 314 | if (preset_lpj) { | 315 | if (per_cpu(cpu_loops_per_jiffy, this_cpu)) { |
| 315 | . | 316 | . |
| 316 | . | 317 | . |
| 317 | . | 318 | . |
