Skip to content
Snippets Groups Projects
Commit a7569495 authored by Cheng Shao's avatar Cheng Shao Committed by Marge Bot
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.
parent 56e3f097
No related branches found
No related tags found
No related merge requests found
......@@ -151,14 +151,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