Commit e9dff0ee6694b2edd40b1b448cb786f6a7b02336
Committed by
Andi Kleen
1 parent
5f0f1c1666
Exists in
master
and in
4 other branches
[PATCH] i386: mark cpu cache functions as __cpuinit
Mark i386-specific cpu cache functions as __cpuinit. They are all only called from arch/i386/common.c:display_cache_info() that already is marked as __cpuinit. Signed-off-by: Magnus Damm <magnus@valinux.co.jp> Signed-off-by: Andi Kleen <ak@suse.de>
Showing 3 changed files with 3 additions and 3 deletions Side-by-side Diff
arch/i386/kernel/cpu/amd.c
| ... | ... | @@ -246,7 +246,7 @@ |
| 246 | 246 | num_cache_leaves = 3; |
| 247 | 247 | } |
| 248 | 248 | |
| 249 | -static unsigned int amd_size_cache(struct cpuinfo_x86 * c, unsigned int size) | |
| 249 | +static unsigned int __cpuinit amd_size_cache(struct cpuinfo_x86 * c, unsigned int size) | |
| 250 | 250 | { |
| 251 | 251 | /* AMD errata T13 (order #21922) */ |
| 252 | 252 | if ((c->x86 == 6)) { |
arch/i386/kernel/cpu/centaur.c
| ... | ... | @@ -442,7 +442,7 @@ |
| 442 | 442 | } |
| 443 | 443 | } |
| 444 | 444 | |
| 445 | -static unsigned int centaur_size_cache(struct cpuinfo_x86 * c, unsigned int size) | |
| 445 | +static unsigned int __cpuinit centaur_size_cache(struct cpuinfo_x86 * c, unsigned int size) | |
| 446 | 446 | { |
| 447 | 447 | /* VIA C3 CPUs (670-68F) need further shifting. */ |
| 448 | 448 | if ((c->x86 == 6) && ((c->x86_model == 7) || (c->x86_model == 8))) |
arch/i386/kernel/cpu/intel.c
| ... | ... | @@ -198,7 +198,7 @@ |
| 198 | 198 | } |
| 199 | 199 | |
| 200 | 200 | |
| 201 | -static unsigned int intel_size_cache(struct cpuinfo_x86 * c, unsigned int size) | |
| 201 | +static unsigned int __cpuinit intel_size_cache(struct cpuinfo_x86 * c, unsigned int size) | |
| 202 | 202 | { |
| 203 | 203 | /* Intel PIII Tualatin. This comes in two flavours. |
| 204 | 204 | * One has 256kb of cache, the other 512. We have no way |