-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 272963 b: refs/heads/master c: fcd4671 h: refs/heads/master i: 272961: d53442c 272959: 60c1198 v: v3
- Loading branch information
Arnd Bergmann
committed
Oct 20, 2011
1 parent
340aaaa
commit a65f006
Showing
17 changed files
with
299 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: bda2487997c3b7828a3765e7f2c37fdd6b7bdcbe | ||
refs/heads/master: fcd467137ea2da46ffe5cbfdb42e8a2b35f13dad |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Annotations for marking C functions as exception handlers. | ||
* | ||
* These should only be used for C functions that are called from the low | ||
* level exception entry code and not any intervening C code. | ||
*/ | ||
#ifndef __ASM_ARM_EXCEPTION_H | ||
#define __ASM_ARM_EXCEPTION_H | ||
|
||
#include <linux/ftrace.h> | ||
|
||
#define __exception __attribute__((section(".exception.text"))) | ||
#ifdef CONFIG_FUNCTION_GRAPH_TRACER | ||
#define __exception_irq_entry __irq_entry | ||
#else | ||
#define __exception_irq_entry __exception | ||
#endif | ||
|
||
#endif /* __ASM_ARM_EXCEPTION_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,39 @@ | ||
#ifndef _ASM_ARM_TOPOLOGY_H | ||
#define _ASM_ARM_TOPOLOGY_H | ||
|
||
#ifdef CONFIG_ARM_CPU_TOPOLOGY | ||
|
||
#include <linux/cpumask.h> | ||
|
||
struct cputopo_arm { | ||
int thread_id; | ||
int core_id; | ||
int socket_id; | ||
cpumask_t thread_sibling; | ||
cpumask_t core_sibling; | ||
}; | ||
|
||
extern struct cputopo_arm cpu_topology[NR_CPUS]; | ||
|
||
#define topology_physical_package_id(cpu) (cpu_topology[cpu].socket_id) | ||
#define topology_core_id(cpu) (cpu_topology[cpu].core_id) | ||
#define topology_core_cpumask(cpu) (&cpu_topology[cpu].core_sibling) | ||
#define topology_thread_cpumask(cpu) (&cpu_topology[cpu].thread_sibling) | ||
|
||
#define mc_capable() (cpu_topology[0].socket_id != -1) | ||
#define smt_capable() (cpu_topology[0].thread_id != -1) | ||
|
||
void init_cpu_topology(void); | ||
void store_cpu_topology(unsigned int cpuid); | ||
const struct cpumask *cpu_coregroup_mask(unsigned int cpu); | ||
|
||
#else | ||
|
||
static inline void init_cpu_topology(void) { } | ||
static inline void store_cpu_topology(unsigned int cpuid) { } | ||
|
||
#endif | ||
|
||
#include <asm-generic/topology.h> | ||
|
||
#endif /* _ASM_ARM_TOPOLOGY_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.