mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[POWERPC] cell: add cbe_node_to_cpu function
This patch adds code to deal with conversion of logical cpu to cbe nodes. It removes code that assummed there were two logical CPUs per CBE. Signed-off-by: Christian Krafft <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
This commit is contained in:
parent
390cbb56a7
commit
91a69c9646
4 changed files with 45 additions and 19 deletions
|
|
@ -97,11 +97,6 @@ extern void cbe_disable_pm_interrupts(u32 cpu);
|
|||
extern u32 cbe_get_and_clear_pm_interrupts(u32 cpu);
|
||||
extern void cbe_sync_irq(int node);
|
||||
|
||||
/* Utility functions, macros */
|
||||
extern u32 cbe_get_hw_thread_id(int cpu);
|
||||
|
||||
#define cbe_cpu_to_node(cpu) ((cpu) >> 1)
|
||||
|
||||
#define CBE_COUNT_SUPERVISOR_MODE 0
|
||||
#define CBE_COUNT_HYPERVISOR_MODE 1
|
||||
#define CBE_COUNT_PROBLEM_MODE 2
|
||||
|
|
|
|||
Loading…
Reference in a new issue