acpuclock.h 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. /* arch/arm/mach-msm/acpuclock.h
  2. *
  3. * MSM architecture clock driver header
  4. *
  5. * Copyright (C) 2007 Google, Inc.
  6. * Copyright (c) 2007 QUALCOMM Incorporated
  7. * Author: San Mehat <san@android.com>
  8. *
  9. * This software is licensed under the terms of the GNU General Public
  10. * License version 2, as published by the Free Software Foundation, and
  11. * may be copied, distributed, and modified under those terms.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. */
  19. #ifndef __ARCH_ARM_MACH_MSM_ACPUCLOCK_H
  20. #define __ARCH_ARM_MACH_MSM_ACPUCLOCK_H
  21. int acpuclk_set_rate(unsigned long rate, int for_power_collapse);
  22. unsigned long acpuclk_get_rate(void);
  23. uint32_t acpuclk_get_switch_time(void);
  24. unsigned long acpuclk_wait_for_irq(void);
  25. unsigned long acpuclk_power_collapse(void);
  26. unsigned long acpuclk_get_wfi_rate(void);
  27. #endif