Skip to content

Conversation

@lrh2000
Copy link

@lrh2000 lrh2000 commented May 11, 2025

host_ops.gettid is not called anywhere except in a boot test. The boot test just checks to see if gettid returns a non-zero tid, which makes no sense.

I suspect host_ops.gettid was added for some historical reason, but it can now be safely removed. This commit removes it as well as the silly test.

host_ops.gettid is not called anywhere except in a boot test. The boot
test just checks to see if gettid returns a non-zero tid, which makes no
sense.

I suspect host_ops.gettid was added for some historical reason, but it
can now be safely removed. This commit removes it as well as the silly
test.

Signed-off-by: Ruihan Li <lrh2000@pku.edu.cn>
Copy link

@ddiss ddiss left a comment

Choose a reason for hiding this comment

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

looks like a nice cleanup

Copy link
Member

@tavip tavip left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @lrh2000. For context, gettid was added to help with debugging (some networking issues a while back). I don't think we've used it in a while so I am fine with removing it. @thehajime what do you think?

@thehajime
Copy link
Member

sorry to be late.
indeed, this was never used in lkl so, agree to remove it.

thanks for the patch !

@thehajime thehajime merged commit 06837c8 into lkl:master May 13, 2025
13 checks passed
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.

4 participants