Skip to content

Commit

Permalink
removed periodic pe function
Browse files Browse the repository at this point in the history
- removed g_tw_periodicity variable
- removed pe_periodic_f type
- removed periodic function call in tw-sched.c (conservative)
  • Loading branch information
gonsie authored and laprej committed Apr 24, 2014
1 parent 3fa4dd0 commit 443bfd2
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 17 deletions.
2 changes: 0 additions & 2 deletions core/ross-extern.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ extern size_t g_tw_event_msg_sz;
extern unsigned int g_tw_memory_nqueues;
extern size_t g_tw_memory_sz;

extern unsigned int g_tw_periodicity;

extern tw_stime g_tw_lookahead;
extern tw_stime g_tw_min_detected_offset;

Expand Down
7 changes: 0 additions & 7 deletions core/ross-global.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,6 @@ unsigned int g_tw_memory_nqueues = 0;
size_t g_tw_memory_sz = 0;
size_t g_tw_event_msg_sz = 0;

/*
* Number of iterations in scheduler (invoked from tw_run)
* before calling application callout. Default is to call
* callout for each iteration.
*/
unsigned int g_tw_periodicity = 1;

/*
* Minimum lookahead for a model -- model defined when
* using the Simple Synchronization Protocol (conservative)
Expand Down
2 changes: 0 additions & 2 deletions core/ross-types.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ typedef unsigned long long tw_stat;
typedef void (*pe_init_f) (tw_pe * pe);
typedef void (*pe_gvt_f) (tw_pe * pe);
typedef void (*pe_final_f) (tw_pe * pe);
typedef void (*pe_periodic_f) (tw_pe * pe);

/** tw_petype @brief Virtual Functions for per PE ops
*
Expand All @@ -73,7 +72,6 @@ struct tw_petype
pe_init_f post_lp_init; /**< @brief PE initialization routine, after LP init */
pe_gvt_f gvt; /**< @brief PE per GVT routine */
pe_final_f final; /**< @brief PE finilization routine */
pe_periodic_f periodic; /**< @brief Callout made for K loops of tw scheduler */
};

/*
Expand Down
1 change: 0 additions & 1 deletion core/tw-pe.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ tw_pe_settype(tw_pe * pe, const tw_petype * type)
copy_pef(post_lp_init, dummy_pe_f);
copy_pef(gvt, dummy_pe_f);
copy_pef(final, dummy_pe_f);
copy_pef(periodic, dummy_pe_f);

#undef copy_pef
}
Expand Down
5 changes: 0 additions & 5 deletions core/tw-sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,6 @@ tw_scheduler_conservative(tw_pe * me)
{
tw_clock start;
unsigned int msg_i;
unsigned int round = 0;

tw_sched_init(me);
tw_wall_now(&me->start_time);
Expand Down Expand Up @@ -403,10 +402,6 @@ tw_scheduler_conservative(tw_pe * me)
tw_event_free(me, cev);
}

if(me->type.periodic && (++round % g_tw_periodicity))
{
(*me->type.periodic)(me);
}
}


Expand Down

0 comments on commit 443bfd2

Please sign in to comment.