summaryrefslogtreecommitdiff
path: root/big-little/virtualisor/cpus
diff options
context:
space:
mode:
authorRobin Randhawa <robin.randhawa@arm.com>2012-02-16 16:54:06 +0000
committerRobin Randhawa <robin.randhawa@arm.com>2012-02-16 16:55:09 +0000
commit813834c76ac48f29a4e1f67bb341ff0d0911b414 (patch)
treef9aa160817422c3c77ea913ec501221f85996948 /big-little/virtualisor/cpus
parent48aa177c0c3e38dc84728df705e50ba924b6f424 (diff)
downloadswitcher-813834c76ac48f29a4e1f67bb341ff0d0911b414.tar.gz
GNU indent pass over C and header files.
Basically: $ for f in $(find . -name "*.[ch]"; do indent -linux $f; done Signed-off-by: Robin Randhawa <robin.randhawa@arm.com>
Diffstat (limited to 'big-little/virtualisor/cpus')
-rw-r--r--big-little/virtualisor/cpus/a15/a15.c46
-rw-r--r--big-little/virtualisor/cpus/a15/include/a15.h4
-rw-r--r--big-little/virtualisor/cpus/a7/a7.c42
-rw-r--r--big-little/virtualisor/cpus/a7/include/a7.h4
4 files changed, 44 insertions, 52 deletions
diff --git a/big-little/virtualisor/cpus/a15/a15.c b/big-little/virtualisor/cpus/a15/a15.c
index 942fd8f..17c91a4 100644
--- a/big-little/virtualisor/cpus/a15/a15.c
+++ b/big-little/virtualisor/cpus/a15/a15.c
@@ -18,7 +18,7 @@
* contributors may be used to endorse or promote products
* derived from this software without specific prior written
* permission.
- */
+ */
#include "bl.h"
#include "virtualisor.h"
@@ -33,41 +33,37 @@ static virt_descriptor a15_virt_desc;
*/
unsigned a15_trap_handle(gp_regs * regs, unsigned hsr, unsigned sibling_cpu)
{
- return 0;
+ return 0;
}
unsigned a15_trap_save(unsigned first_cpu, unsigned sibling_cpu)
{
- return 0;
+ return 0;
}
unsigned a15_trap_restore(unsigned first_cpu, unsigned sibling_cpu)
{
- return 0;
+ return 0;
}
unsigned a15_trap_setup(unsigned first_cpu, unsigned sibling_cpu)
{
- if (switcher) {
-
- } else {
- /* Always on */
- }
-
- /*
- * Indicate that cpu specific virtualisor setup
- * has been done. Restore context instead on next
- * invocation
- */
- a15_virt_desc.init[read_cpuid()] = 1;
- return 0;
+ if (switcher) {
+
+ } else {
+ /* Always on */
+ }
+
+ /*
+ * Indicate that cpu specific virtualisor setup
+ * has been done. Restore context instead on next
+ * invocation
+ */
+ a15_virt_desc.init[read_cpuid()] = 1;
+ return 0;
}
-static virt_descriptor a15_virt_desc __attribute__ ((section("virt_desc_section"))) = {
- A15,
- {0},
- a15_trap_setup,
- a15_trap_handle,
- a15_trap_save,
- a15_trap_restore,
-};
+static virt_descriptor a15_virt_desc
+ __attribute__ ((section("virt_desc_section"))) = {
+ A15, {
+0}, a15_trap_setup, a15_trap_handle, a15_trap_save, a15_trap_restore,};
diff --git a/big-little/virtualisor/cpus/a15/include/a15.h b/big-little/virtualisor/cpus/a15/include/a15.h
index c05bd75..3a9515d 100644
--- a/big-little/virtualisor/cpus/a15/include/a15.h
+++ b/big-little/virtualisor/cpus/a15/include/a15.h
@@ -18,9 +18,9 @@
* contributors may be used to endorse or promote products
* derived from this software without specific prior written
* permission.
- */
+ */
#ifndef __A15_H__
#define __A15_H__
-#endif /* __A15_H__ */
+#endif /* __A15_H__ */
diff --git a/big-little/virtualisor/cpus/a7/a7.c b/big-little/virtualisor/cpus/a7/a7.c
index 6ff8f6c..e9e16af 100644
--- a/big-little/virtualisor/cpus/a7/a7.c
+++ b/big-little/virtualisor/cpus/a7/a7.c
@@ -18,7 +18,7 @@
* contributors may be used to endorse or promote products
* derived from this software without specific prior written
* permission.
- */
+ */
#include "bl.h"
#include "virtualisor.h"
@@ -33,41 +33,37 @@ static virt_descriptor a7_virt_desc;
*/
unsigned a7_trap_handle(gp_regs * regs, unsigned hsr, unsigned sibling_cpu)
{
- return 0;
+ return 0;
}
unsigned a7_trap_save(unsigned first_cpu, unsigned sibling_cpu)
{
- return 0;
+ return 0;
}
unsigned a7_trap_restore(unsigned first_cpu, unsigned sibling_cpu)
{
- return 0;
+ return 0;
}
unsigned a7_trap_setup(unsigned first_cpu, unsigned sibling_cpu)
{
- if (switcher) {
+ if (switcher) {
- } else {
- /* Always on */
- }
+ } else {
+ /* Always on */
+ }
- /*
- * Indicate that cpu specific virtualisor setup
- * has been done. Restore context instead on next
- * invocation
- */
- a7_virt_desc.init[read_cpuid()] = 1;
- return 0;
+ /*
+ * Indicate that cpu specific virtualisor setup
+ * has been done. Restore context instead on next
+ * invocation
+ */
+ a7_virt_desc.init[read_cpuid()] = 1;
+ return 0;
}
-static virt_descriptor a7_virt_desc __attribute__ ((section("virt_desc_section"))) = {
- A7,
- {0},
- a7_trap_setup,
- a7_trap_handle,
- a7_trap_save,
- a7_trap_restore,
-};
+static virt_descriptor a7_virt_desc
+ __attribute__ ((section("virt_desc_section"))) = {
+ A7, {
+0}, a7_trap_setup, a7_trap_handle, a7_trap_save, a7_trap_restore,};
diff --git a/big-little/virtualisor/cpus/a7/include/a7.h b/big-little/virtualisor/cpus/a7/include/a7.h
index da3db59..ff3000e 100644
--- a/big-little/virtualisor/cpus/a7/include/a7.h
+++ b/big-little/virtualisor/cpus/a7/include/a7.h
@@ -18,9 +18,9 @@
* contributors may be used to endorse or promote products
* derived from this software without specific prior written
* permission.
- */
+ */
#ifndef __A7_H__
#define __A7_H__
-#endif /* __A7_H__ */
+#endif /* __A7_H__ */