From 4227a3c937dc836d5c84f40b84d66bee2ae25403 Mon Sep 17 00:00:00 2001 From: Gary King Date: Mon, 7 Jun 2010 18:54:15 -0700 Subject: [ARM/tegra] rename cortex_a9_save to tegra2_save more of the code in this file is tegra power-state specific than common CPU save and restore routines, so rename it to reflect that it won't run on non-Tegra SoCs Change-Id: I22643da41309b48a7f85e62407ec8b7d9f75baff Reviewed-on: http://git-master/r/2244 Reviewed-by: Gary King Tested-by: Gary King --- arch/arm/mach-tegra/Makefile | 2 +- arch/arm/mach-tegra/cortex_a9_save.S | 818 ----------------------------------- arch/arm/mach-tegra/tegra2_save.S | 818 +++++++++++++++++++++++++++++++++++ 3 files changed, 819 insertions(+), 819 deletions(-) delete mode 100644 arch/arm/mach-tegra/cortex_a9_save.S create mode 100644 arch/arm/mach-tegra/tegra2_save.S diff --git a/arch/arm/mach-tegra/Makefile b/arch/arm/mach-tegra/Makefile index 0361b87868b6..ef1695d81a99 100644 --- a/arch/arm/mach-tegra/Makefile +++ b/arch/arm/mach-tegra/Makefile @@ -15,7 +15,7 @@ obj-y += pinmux.o obj-y += pinmux-t2-tables.o obj-y += delay.o obj-$(CONFIG_SMP) += platsmp.o localtimer.o headsmp.o -obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += cortex_a9_save.o +obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra2_save.o obj-$(CONFIG_MACH_TEGRA_GENERIC) += board-generic.o obj-$(CONFIG_CPU_FREQ) += cpufreq.o obj-$(CONFIG_CPU_IDLE) += cpuidle.o diff --git a/arch/arm/mach-tegra/cortex_a9_save.S b/arch/arm/mach-tegra/cortex_a9_save.S deleted file mode 100644 index 6c80e8e28b79..000000000000 --- a/arch/arm/mach-tegra/cortex_a9_save.S +++ /dev/null @@ -1,818 +0,0 @@ -/* - * arch/arm/mach-tegra/cortex_a9_save.S - * - * CPU state save & restore routines for CPU hotplug - * - * Copyright (c) 2010, 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 -#include - -#include -#include -#include -#include -#include -#include - -#include -#include - -#include "power.h" - -/* .section ".cpuinit.text", "ax"*/ - -#define TTB_FLAGS 0x6A @ IRGN_WBWA, OC_RGN_WBWA, S, NOS - -#define CONTEXT_SIZE_WORDS_SHIFT 7 -#define CONTEXT_SIZE_WORDS (1< +#include + +#include +#include +#include +#include +#include +#include + +#include +#include + +#include "power.h" + +/* .section ".cpuinit.text", "ax"*/ + +#define TTB_FLAGS 0x6A @ IRGN_WBWA, OC_RGN_WBWA, S, NOS + +#define CONTEXT_SIZE_WORDS_SHIFT 7 +#define CONTEXT_SIZE_WORDS (1<