Skip to content
Snippets Groups Projects
Commit b802da2a authored by Cheng Shao's avatar Cheng Shao :beach:
Browse files

rts: remove redundant rCCCS initialization

This commit removes the redundant logic of initializing each
Capability's rCCCS to CCS_SYSTEM in initProfiling(). Before
initProfiling() is called during RTS startup, each Capability's rCCCS
has already been assigned CCS_SYSTEM when they're first initialized.

(cherry picked from commit a7569495)
parent ad5ab554
No related branches found
No related tags found
No related merge requests found
......@@ -150,14 +150,6 @@ void initProfiling (void)
// initialise our arena
prof_arena = newArena();
/* for the benefit of allocate()... */
{
uint32_t n;
for (n=0; n < getNumCapabilities(); n++) {
getCapability(n)->r.rCCCS = CCS_SYSTEM;
}
}
#if defined(THREADED_RTS)
initMutex(&ccs_mutex);
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment