Skip to content

init: init sequence supporting slave cores#43

Merged
lgirdwood merged 1 commit intothesofproject:nextfrom
tlauda:topic/core_flow
Jul 4, 2018
Merged

init: init sequence supporting slave cores#43
lgirdwood merged 1 commit intothesofproject:nextfrom
tlauda:topic/core_flow

Conversation

@tlauda
Copy link
Copy Markdown
Contributor

@tlauda tlauda commented Jul 3, 2018

Change initialization sequence to support slave cores.

Signed-off-by: Tomasz Lauda tomasz.lauda@linux.intel.com

Copy link
Copy Markdown
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just minor, our do_task_on_core() APIs should accept the core ID as an arg, that way we reduce the number of API calls and any conditional logic surrounding the API calls.

Comment thread src/include/sof/task.h Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably better if we can pass the core ID in here an use a single API call. We can also define PLATFORM_MASTER_CORE 0 if needed too

@tlauda tlauda force-pushed the topic/core_flow branch from f7bcc3b to 2040ae6 Compare July 3, 2018 15:13
@tlauda
Copy link
Copy Markdown
Contributor Author

tlauda commented Jul 3, 2018

Changed the methods according to your suggestion.

Copy link
Copy Markdown
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, my mistake, I had misread the do_task() as a scheduling API update for slave core and now I see it the main loop. I think your original was better. OK to change back ? Sorry.

Change initialization sequence to support slave cores.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
@tlauda tlauda force-pushed the topic/core_flow branch from 2040ae6 to 7e430f2 Compare July 4, 2018 10:16
@tlauda
Copy link
Copy Markdown
Contributor Author

tlauda commented Jul 4, 2018

Reverted.

@lgirdwood lgirdwood merged commit 7fafadd into thesofproject:next Jul 4, 2018
@tlauda tlauda deleted the topic/core_flow branch November 22, 2019 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants