diff options
| author | Jung-uk Kim <jkim@FreeBSD.org> | 2015-11-25 21:04:42 +0000 | 
|---|---|---|
| committer | Jung-uk Kim <jkim@FreeBSD.org> | 2015-11-25 21:04:42 +0000 | 
| commit | b9098066cd6284319bca922f13e59517f774a103 (patch) | |
| tree | f01fd6c9053cb01ed84c00cb42ee789adafceaf5 /source/components/hardware/hwsleep.c | |
| parent | 1e24cf365bc9c8df179b145c90d52852724e54ee (diff) | |
Notes
Diffstat (limited to 'source/components/hardware/hwsleep.c')
| -rw-r--r-- | source/components/hardware/hwsleep.c | 16 | 
1 files changed, 9 insertions, 7 deletions
| diff --git a/source/components/hardware/hwsleep.c b/source/components/hardware/hwsleep.c index f56110e04c2a..9517ad3a380b 100644 --- a/source/components/hardware/hwsleep.c +++ b/source/components/hardware/hwsleep.c @@ -83,7 +83,8 @@ AcpiHwLegacySleep (      /* Clear wake status */ -    Status = AcpiWriteBitRegister (ACPI_BITREG_WAKE_STATUS, ACPI_CLEAR_STATUS); +    Status = AcpiWriteBitRegister (ACPI_BITREG_WAKE_STATUS, +        ACPI_CLEAR_STATUS);      if (ACPI_FAILURE (Status))      {          return_ACPI_STATUS (Status); @@ -117,7 +118,7 @@ AcpiHwLegacySleep (      /* Get current value of PM1A control */      Status = AcpiHwRegisterRead (ACPI_REGISTER_PM1_CONTROL, -                &Pm1aControl); +        &Pm1aControl);      if (ACPI_FAILURE (Status))      {          return_ACPI_STATUS (Status); @@ -128,7 +129,7 @@ AcpiHwLegacySleep (      /* Clear the SLP_EN and SLP_TYP fields */      Pm1aControl &= ~(SleepTypeRegInfo->AccessBitMask | -                     SleepEnableRegInfo->AccessBitMask); +         SleepEnableRegInfo->AccessBitMask);      Pm1bControl = Pm1aControl;      /* Insert the SLP_TYP bits */ @@ -182,7 +183,7 @@ AcpiHwLegacySleep (          AcpiOsStall (10 * ACPI_USEC_PER_SEC);          Status = AcpiHwRegisterWrite (ACPI_REGISTER_PM1_CONTROL, -                    SleepEnableRegInfo->AccessBitMask); +            SleepEnableRegInfo->AccessBitMask);          if (ACPI_FAILURE (Status))          {              return_ACPI_STATUS (Status); @@ -238,7 +239,7 @@ AcpiHwLegacyWakePrep (       * by some machines.       */      Status = AcpiGetSleepTypeData (ACPI_STATE_S0, -                    &AcpiGbl_SleepTypeA, &AcpiGbl_SleepTypeB); +        &AcpiGbl_SleepTypeA, &AcpiGbl_SleepTypeB);      if (ACPI_SUCCESS (Status))      {          SleepTypeRegInfo = @@ -249,7 +250,7 @@ AcpiHwLegacyWakePrep (          /* Get current value of PM1A control */          Status = AcpiHwRegisterRead (ACPI_REGISTER_PM1_CONTROL, -                    &Pm1aControl); +            &Pm1aControl);          if (ACPI_SUCCESS (Status))          {              /* Clear the SLP_EN and SLP_TYP fields */ @@ -334,7 +335,8 @@ AcpiHwLegacyWake (       * and use it to determine whether the system is rebooting or       * resuming. Clear WAK_STS for compatibility.       */ -    (void) AcpiWriteBitRegister (ACPI_BITREG_WAKE_STATUS, ACPI_CLEAR_STATUS); +    (void) AcpiWriteBitRegister (ACPI_BITREG_WAKE_STATUS, +        ACPI_CLEAR_STATUS);      AcpiGbl_SystemAwakeAndRunning = TRUE;      /* Enable power button */ | 
