Permalink
Browse files

[clock skew minimization] Disable calls outside region-of-interest

  • Loading branch information...
1 parent e2f510c commit d25b448126acb08e34af72761c3a1ce2b3785cff George Kurian committed Dec 13, 2012
Showing with 7 additions and 5 deletions.
  1. +7 −5 pin/clock_skew_minimization.cc
@@ -12,16 +12,18 @@ static bool enabled()
void handlePeriodicSync()
{
- Tile* tile = Sim()->getTileManager()->getCurrentTile();
- assert(tile);
- if (tile->getId() >= (tile_id_t) Sim()->getConfig()->getApplicationTiles())
+ if (!Sim()->isEnabled())
+ return;
+
+ Core* core = Sim()->getTileManager()->getCurrentCore();
+ assert(core);
+ if (core->getTile()->getId() >= (tile_id_t) Sim()->getConfig()->getApplicationTiles())
{
// Thread Spawner Tile / MCP
return;
}
- ClockSkewMinimizationClient *client = tile->getCore()->getClockSkewMinimizationClient();
-
+ ClockSkewMinimizationClient *client = core->getClockSkewMinimizationClient();
if (client)
client->synchronize();
}

0 comments on commit d25b448

Please sign in to comment.