Bug 100717
Summary: | unsigned/signed int in apm | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | rgb |
Component: | kernel | Assignee: | Arjan van de Ven <arjanv> |
Status: | CLOSED WONTFIX | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 9 | CC: | riel |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i686 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-09-30 15:41:20 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
rgb
2003-07-24 15:23:38 UTC
Well, here's the code in question, from arch/i386/kernel/apm.c ... unsigned short bx; unsigned short cx; unsigned short dx; int percentage = -1; ... if ((smp_num_cpus == 1 || smp) && !(error = apm_get_power_status(&bx, &cx, &dx))) { ac_line_status = (bx >> 8) & 0xff; battery_status = bx & 0xff; if ((cx & 0xff) != 0xff) percentage = cx & 0xff; ... It's clearly testing for one specific condition and leaving it set to -1 in that case, which looks pretty intentional; it might have to do with the APM spec, which I don't have a copy of. Stephen Rothwell <sfr.org.au> is the upstream maintainer of APM. Bugzilla doesn't really have a "forward upstream" feature. You could contact Stephen yourself if you like. Thanks for the bug report. However, Red Hat no longer maintains this version of the product. Please upgrade to the latest version and open a new bug if the problem persists. The Fedora Legacy project (http://fedoralegacy.org/) maintains some older releases, and if you believe this bug is interesting to them, please report the problem in the bug tracker at: http://bugzilla.fedora.us/ |