blob: c3c6b91566ed822dd9d6ba20b3d1ceca55a86ea5 [file] [log] [blame]
Jeremy Fitzhardingec169859d2007-05-02 19:27:12 +02001/*
2 * arch/x86_64/kernel/bugs.c
3 *
4 * Copyright (C) 1994 Linus Torvalds
5 * Copyright (C) 2000 SuSE
Jeremy Fitzhardingec169859d2007-05-02 19:27:12 +02006 */
7
8#include <linux/kernel.h>
Jeremy Fitzhardinge57decbd2007-05-02 19:27:16 +02009#include <linux/init.h>
Jeremy Fitzhardingec169859d2007-05-02 19:27:12 +020010#include <asm/alternative.h>
11#include <asm/processor.h>
Andi Kleen0a203a42007-05-12 17:27:40 +020012#include <asm/mtrr.h>
Jeremy Fitzhardingec169859d2007-05-02 19:27:12 +020013
14void __init check_bugs(void)
15{
16 identify_cpu(&boot_cpu_data);
Andi Kleen8bd99482007-05-11 11:23:20 +020017 mtrr_bp_init();
Jeremy Fitzhardingec169859d2007-05-02 19:27:12 +020018#if !defined(CONFIG_SMP)
19 printk("CPU: ");
20 print_cpu_info(&boot_cpu_data);
21#endif
22 alternative_instructions();
23}