diff options
author | Alex Frid <afrid@nvidia.com> | 2011-01-22 20:07:49 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-04-26 15:49:54 -0700 |
commit | 4e80899d99187c37c4941c6873627ca94d824df7 (patch) | |
tree | 30375d8da0486f58889bc766696b32dba19766c7 /arch/arm/mach-tegra/tegra3_speedo.c | |
parent | 434ad0664522879fdc900928b7bae9306ceceeb4 (diff) |
ARM: tegra: Add Tegra3 speedo stubs
Original-Change-Id: I05b9b8014062a28a69407c08fc630a280214315e
Reviewed-on: http://git-master/r/16661
Tested-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Change-Id: I190f04798473bf4452d00561cae96e45085c3dc0
Diffstat (limited to 'arch/arm/mach-tegra/tegra3_speedo.c')
-rw-r--r-- | arch/arm/mach-tegra/tegra3_speedo.c | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/tegra3_speedo.c b/arch/arm/mach-tegra/tegra3_speedo.c new file mode 100644 index 000000000000..c5544d6d3ec1 --- /dev/null +++ b/arch/arm/mach-tegra/tegra3_speedo.c @@ -0,0 +1,53 @@ +/* + * arch/arm/mach-tegra/tegra3_speedo.c + * + * Copyright (c) 2011, NVIDIA Corporation. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +#include <linux/kernel.h> +#include <linux/io.h> +#include <linux/err.h> + +#include <mach/iomap.h> + +#include "fuse.h" + +static int cpu_process_id; +static int core_process_id; +static int soc_speedo_id; + +void tegra_init_speedo_data(void) +{ + cpu_process_id = 0; + core_process_id = 0; + soc_speedo_id = 0; +} + +int tegra_cpu_process_id(void) +{ + return cpu_process_id; +} + +int tegra_core_process_id(void) +{ + return core_process_id; +} + +int tegra_soc_speedo_id(void) +{ + return soc_speedo_id; +} |