]> xenbits.xensource.com Git - xenclient/ioemu-pq.git/commitdiff
Minor change to fix a not so minor logic issue (potentially introduced through some...
authorKamala Narasimhan <kamala.narasimhan@citrix.com>
Thu, 11 Jun 2009 20:18:40 +0000 (16:18 -0400)
committerKamala Narasimhan <kamala.narasimhan@citrix.com>
Thu, 11 Jun 2009 20:18:40 +0000 (16:18 -0400)
master/battery-management

index 2a37b2bd0a33accbce8089e2776fd285f4b8f2d7..4da956e7efcf25464255c617df07febd2dd19d23 100644 (file)
@@ -187,7 +187,7 @@ index c45bf9f..8c1debd 100644
                                           uint32_t build_nr);
  
 diff --git a/xenstore.c b/xenstore.c
-index 99b31fd..86deceb 100644
+index 99b31fd..96972d9 100644
 --- a/xenstore.c
 +++ b/xenstore.c
 @@ -27,6 +27,7 @@
@@ -198,7 +198,7 @@ index 99b31fd..86deceb 100644
  #include "qemu-timer.h"
  #include "qemu-xen.h"
  
-@@ -991,6 +992,25 @@ void xenstore_process_event(void *opaque)
+@@ -991,6 +992,26 @@ void xenstore_process_event(void *opaque)
          goto out;
      }
  
@@ -214,6 +214,7 @@ index 99b31fd..86deceb 100644
 +
 +    if (!strcmp(vec[XS_WATCH_TOKEN], "slpbuttonpressedevt")) {
 +        acpi_sleep_button_pressed();
++        goto out;
 +    }
 +
 +    if (!strcmp(vec[XS_WATCH_TOKEN], "lidstatechangeevt")) {
@@ -224,7 +225,7 @@ index 99b31fd..86deceb 100644
      if (strncmp(vec[XS_WATCH_TOKEN], "hd", 2) ||
          strlen(vec[XS_WATCH_TOKEN]) != 3)
          goto out;
-@@ -1373,6 +1393,20 @@ static char *xenstore_extended_power_mgmt_read(const char *key, unsigned int *le
+@@ -1373,6 +1394,20 @@ static char *xenstore_extended_power_mgmt_read(const char *key, unsigned int *le
      return value;
  }
  
@@ -245,7 +246,7 @@ index 99b31fd..86deceb 100644
  static int xenstore_extended_power_mgmt_write(const char *key, const char *value)
  {
      int ret;
-@@ -1425,6 +1459,37 @@ int xenstore_refresh_battery_status(void)
+@@ -1425,6 +1460,37 @@ int xenstore_refresh_battery_status(void)
      return xenstore_extended_power_mgmt_event_trigger("refreshbatterystatus", "1");
  }