bugs.c 453 B

123456789101112131415161718192021222324
  1. /*
  2. * arch/x86_64/kernel/bugs.c
  3. *
  4. * Copyright (C) 1994 Linus Torvalds
  5. * Copyright (C) 2000 SuSE
  6. */
  7. #include <linux/kernel.h>
  8. #include <linux/init.h>
  9. #include <asm/alternative.h>
  10. #include <asm/bugs.h>
  11. #include <asm/processor.h>
  12. #include <asm/mtrr.h>
  13. void __init check_bugs(void)
  14. {
  15. identify_cpu(&boot_cpu_data);
  16. mtrr_bp_init();
  17. #if !defined(CONFIG_SMP)
  18. printk("CPU: ");
  19. print_cpu_info(&boot_cpu_data);
  20. #endif
  21. alternative_instructions();
  22. }