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>
Sat, 24 Mar 2012 02:57:06 +0000 (19:57 -0700)
commita1bdc123f76c3cf75b7451ca9ccdb33b2881bb14
tree1e196703f53ce8dc18f5774e43cb2c6ecdfb549f
parentd3193a4e671abe94f51df65d886385d75d82639e
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