arm: tegra: Declare tegra_throttling_enable in .h
authorRobert Morell <rmorell@nvidia.com>
Thu, 19 May 2011 16:31:45 +0000 (09:31 -0700)
committerDan Willemsen <dwillemsen@nvidia.com>
Thu, 1 Dec 2011 05:45:53 +0000 (21:45 -0800)
commit2c3d709845787753a0840ae6671f8278929fdb4b
tree0d39bde8e7ec75605f3ac20f8879ff7de952f976
parentf3fc88088753c52c513c7b64f5fb26568617c9b3
arm: tegra: Declare tegra_throttling_enable in .h

The build currently fails for some boards when CONFIG_CPU_FREQ=n, since
we don't build cpu-tegra.c but tegra_throttling_enable is still
referenced.  To fix this:
- Add cpu-tegra.h
- Define tegra_throttling_enable to NULL in the header if either
  CONFIG_CPU_FREQ or CONFIG_TEGRA_THERMAL_THROTTLE are not set
- Use the header file instead of declaring the function extern
  everywhere it's used

Bug 829501

Original-Change-Id: Ice84309546dee201f991a1194fefd80583afc455
Signed-off-by: Robert Morell <rmorell@nvidia.com>
Reviewed-on: http://git-master/r/32208
Reviewed-by: Allen R Martin <amartin@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

Rebase-Id: R1f22b33952e038a770ecdb0ed894e3f85017fdec
arch/arm/mach-tegra/board-cardhu-sensors.c