aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/sgi-gru/grumain.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/sgi-gru/grumain.c')
-rw-r--r--drivers/misc/sgi-gru/grumain.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/misc/sgi-gru/grumain.c b/drivers/misc/sgi-gru/grumain.c
index 14baabc79da4..6358244f392d 100644
--- a/drivers/misc/sgi-gru/grumain.c
+++ b/drivers/misc/sgi-gru/grumain.c
@@ -533,7 +533,7 @@ void gru_unload_context(struct gru_thread_state *gts, int savestate)
533 * Load a GRU context by copying it from the thread data structure in memory 533 * Load a GRU context by copying it from the thread data structure in memory
534 * to the GRU. 534 * to the GRU.
535 */ 535 */
536static void gru_load_context(struct gru_thread_state *gts) 536void gru_load_context(struct gru_thread_state *gts)
537{ 537{
538 struct gru_state *gru = gts->ts_gru; 538 struct gru_state *gru = gts->ts_gru;
539 struct gru_context_configuration_handle *cch; 539 struct gru_context_configuration_handle *cch;
@@ -600,8 +600,8 @@ int gru_update_cch(struct gru_thread_state *gts, int force_unload)
600 gts->ts_tlb_int_select = gru_cpu_fault_map_id(); 600 gts->ts_tlb_int_select = gru_cpu_fault_map_id();
601 cch->tlb_int_select = gru_cpu_fault_map_id(); 601 cch->tlb_int_select = gru_cpu_fault_map_id();
602 cch->tfm_fault_bit_enable = 602 cch->tfm_fault_bit_enable =
603 (gts->ts_user_options == GRU_OPT_MISS_FMM_POLL 603 (gts->ts_user_options == GRU_OPT_MISS_FMM_POLL
604 || gts->ts_user_options == GRU_OPT_MISS_FMM_INTR); 604 || gts->ts_user_options == GRU_OPT_MISS_FMM_INTR);
605 } else { 605 } else {
606 for (i = 0; i < 8; i++) 606 for (i = 0; i < 8; i++)
607 cch->asid[i] = 0; 607 cch->asid[i] = 0;
@@ -645,7 +645,7 @@ static int gru_retarget_intr(struct gru_thread_state *gts)
645#define next_gru(b, g) (((g) < &(b)->bs_grus[GRU_CHIPLETS_PER_BLADE - 1]) ? \ 645#define next_gru(b, g) (((g) < &(b)->bs_grus[GRU_CHIPLETS_PER_BLADE - 1]) ? \
646 ((g)+1) : &(b)->bs_grus[0]) 646 ((g)+1) : &(b)->bs_grus[0])
647 647
648static void gru_steal_context(struct gru_thread_state *gts, int blade_id) 648void gru_steal_context(struct gru_thread_state *gts, int blade_id)
649{ 649{
650 struct gru_blade_state *blade; 650 struct gru_blade_state *blade;
651 struct gru_state *gru, *gru0; 651 struct gru_state *gru, *gru0;
@@ -711,7 +711,7 @@ static void gru_steal_context(struct gru_thread_state *gts, int blade_id)
711/* 711/*
712 * Scan the GRUs on the local blade & assign a GRU context. 712 * Scan the GRUs on the local blade & assign a GRU context.
713 */ 713 */
714static struct gru_state *gru_assign_gru_context(struct gru_thread_state *gts, 714struct gru_state *gru_assign_gru_context(struct gru_thread_state *gts,
715 int blade) 715 int blade)
716{ 716{
717 struct gru_state *gru, *grux; 717 struct gru_state *gru, *grux;