aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/smp.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2006-01-31 21:32:29 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-03-20 04:11:20 -0500
commit96c6e0d8e2a0eb1338751598be47fa1ffed91704 (patch)
tree7174ae7f5c052b8312549860c3a978babc1394ce /arch/sparc64/kernel/smp.c
parentb70c0fa1613c4f69b4a340a0e2bee387560ebbb1 (diff)
[SPARC64]: Kill {save,restore}_alternate_globals()
No longer needed now that we no longer have hard-coded alternate global register usage. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/smp.c')
-rw-r--r--arch/sparc64/kernel/smp.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/sparc64/kernel/smp.c b/arch/sparc64/kernel/smp.c
index 3c14b549cf9..d030c311cfe 100644
--- a/arch/sparc64/kernel/smp.c
+++ b/arch/sparc64/kernel/smp.c
@@ -940,24 +940,19 @@ void smp_release(void)
940 * can service tlb flush xcalls... 940 * can service tlb flush xcalls...
941 */ 941 */
942extern void prom_world(int); 942extern void prom_world(int);
943extern void save_alternate_globals(unsigned long *); 943
944extern void restore_alternate_globals(unsigned long *);
945void smp_penguin_jailcell(int irq, struct pt_regs *regs) 944void smp_penguin_jailcell(int irq, struct pt_regs *regs)
946{ 945{
947 unsigned long global_save[24];
948
949 clear_softint(1 << irq); 946 clear_softint(1 << irq);
950 947
951 preempt_disable(); 948 preempt_disable();
952 949
953 __asm__ __volatile__("flushw"); 950 __asm__ __volatile__("flushw");
954 save_alternate_globals(global_save);
955 prom_world(1); 951 prom_world(1);
956 atomic_inc(&smp_capture_registry); 952 atomic_inc(&smp_capture_registry);
957 membar_storeload_storestore(); 953 membar_storeload_storestore();
958 while (penguins_are_doing_time) 954 while (penguins_are_doing_time)
959 rmb(); 955 rmb();
960 restore_alternate_globals(global_save);
961 atomic_dec(&smp_capture_registry); 956 atomic_dec(&smp_capture_registry);
962 prom_world(0); 957 prom_world(0);
963 958