cpu_common.h 790 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (c) 2016 Google, Inc
  3. *
  4. * SPDX-License-Identifier: GPL-2.0
  5. */
  6. #ifndef __ASM_CPU_COMMON_H
  7. #define __ASM_CPU_COMMON_H
  8. #define IA32_PERF_CTL 0x199
  9. /**
  10. * cpu_common_init() - Set up common CPU init
  11. *
  12. * This reports BIST failure, enables the LAPIC, updates microcode, enables
  13. * the upper 128-bytes of CROM RAM, probes the northbridge, PCH, LPC and SATA.
  14. *
  15. * @return 0 if OK, -ve on error
  16. */
  17. int cpu_common_init(void);
  18. /**
  19. * cpu_set_flex_ratio_to_tdp_nominal() - Set up the maximum non-turbo rate
  20. *
  21. * If a change is needed, this function will do a soft reset so it takes
  22. * effect.
  23. *
  24. * Some details are available here:
  25. * http://forum.hwbot.org/showthread.php?t=76092
  26. *
  27. * @return 0 if OK, -ve on error
  28. */
  29. int cpu_set_flex_ratio_to_tdp_nominal(void);
  30. #endif