cpu_common.h 790 B

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