Skip to content

pipe: remove waiti when task is cancelled - #314

Merged
lgirdwood merged 1 commit into
thesofproject:stable-1.2from
RanderWang:waiti-1.2
Sep 6, 2018
Merged

lgirdwood merged 1 commit into
thesofproject:stable-1.2from
RanderWang:waiti-1.2

Conversation

@RanderWang

Copy link
Copy Markdown
Collaborator

Two reasons: (1)waiti would cause FW panic if it is called in irq level
higher than passive level (2)no need to wait cancelled task to be complete.

Signed-off-by: Pan Xiuli xiuli.pan@linux.intel.com
Signed-off-by: Rander Wang rander.wang@linux.intel.com

Comment thread src/lib/schedule.c Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

wait can be removed from argument list.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

yes, I will refine it.

Comment thread src/lib/schedule.c Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we really need switch anymore? Maybe just simple if for TASK_STATE_QUEUED would be enough.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

good idea. I keep it for future

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.

@RanderWang can you update PR

@RanderWang
RanderWang force-pushed the waiti-1.2 branch 2 times, most recently from 7f5823b to 1bfdb25 Compare September 6, 2018 08:50
Two reasons: (1)waiti would cause FW panic if it is called in irq level
higher than passive level (2)no need to wait cancelled task to be complete.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
@RanderWang

Copy link
Copy Markdown
Collaborator Author

update my PR, thanks for review

@lgirdwood
lgirdwood merged commit 663cdb7 into thesofproject:stable-1.2 Sep 6, 2018
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.

3 participants