Jeremy Fitzhardinge | c169859d | 2007-05-02 19:27:12 +0200 | [diff] [blame] | 1 | /* |
| 2 | * arch/x86_64/kernel/bugs.c |
| 3 | * |
| 4 | * Copyright (C) 1994 Linus Torvalds |
| 5 | * Copyright (C) 2000 SuSE |
Jeremy Fitzhardinge | c169859d | 2007-05-02 19:27:12 +0200 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #include <linux/kernel.h> |
Jeremy Fitzhardinge | 57decbd | 2007-05-02 19:27:16 +0200 | [diff] [blame] | 9 | #include <linux/init.h> |
Jeremy Fitzhardinge | c169859d | 2007-05-02 19:27:12 +0200 | [diff] [blame] | 10 | #include <asm/alternative.h> |
| 11 | #include <asm/processor.h> |
Andi Kleen | 0a203a4 | 2007-05-12 17:27:40 +0200 | [diff] [blame] | 12 | #include <asm/mtrr.h> |
Jeremy Fitzhardinge | c169859d | 2007-05-02 19:27:12 +0200 | [diff] [blame] | 13 | |
| 14 | void __init check_bugs(void) |
| 15 | { |
| 16 | identify_cpu(&boot_cpu_data); |
Andi Kleen | 8bd9948 | 2007-05-11 11:23:20 +0200 | [diff] [blame] | 17 | mtrr_bp_init(); |
Jeremy Fitzhardinge | c169859d | 2007-05-02 19:27:12 +0200 | [diff] [blame] | 18 | #if !defined(CONFIG_SMP) |
| 19 | printk("CPU: "); |
| 20 | print_cpu_info(&boot_cpu_data); |
| 21 | #endif |
| 22 | alternative_instructions(); |
| 23 | } |