Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boards/up_squared: k_sleep() too long with local APIC timer #16072

Closed
ghost opened this issue May 10, 2019 · 1 comment
Closed

boards/up_squared: k_sleep() too long with local APIC timer #16072

ghost opened this issue May 10, 2019 · 1 comment
Labels
bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug

Comments

@ghost
Copy link

ghost commented May 10, 2019

Describe the bug

When using the local APIC timer (CONFIG_LOAPIC_TIMER=y), k_sleep() on the up_squared board sleep durations are off by a factor approximately of 100.

To Reproduce

Build with CONFIG_LOAPIC_TIMER=y and CONFIG_HPET_TIMER=n, and invoke k_sleep().

Expected behavior

e.g., k_sleep(1000) should sleep for 1 second, not 100 seconds.

Impact
This doesn't affect typical applications because the HPET is the default timer source. However, under ACRN the local APIC must be used for timekeeping, so there's a significant impact.

@ghost ghost added bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug labels May 10, 2019
@ghost ghost self-assigned this May 10, 2019
@ghost
Copy link
Author

ghost commented Jun 10, 2019

Rolled into #16720

@ghost ghost closed this as completed Jun 10, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug
Projects
None yet
Development

No branches or pull requests

0 participants