All of lore.kernel.org
 help / color / mirror / Atom feed
From: Olaf Hering <olaf@aepfle.de>
To: linuxppc-dev@ozlabs.org, Paul Mackeras <paulus@samba.org>
Subject: [PATCH] correct AC Power: in /proc/pmu/info on ibook1
Date: Sat, 10 Feb 2007 21:40:00 +0100	[thread overview]
Message-ID: <20070210204000.GA25638@aepfle.de> (raw)
In-Reply-To: <20070210203837.GA25625@aepfle.de>


/proc/pmu/info contains AC Power: 0 when booting without battery.
Force AC Power, it will be updated whenever the battery state changes.

Signed-off-by: Olaf Hering <olaf@aepfle.de>

---
 drivers/macintosh/via-pmu.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6/drivers/macintosh/via-pmu.c
===================================================================
--- linux-2.6.orig/drivers/macintosh/via-pmu.c
+++ linux-2.6/drivers/macintosh/via-pmu.c
@@ -169,7 +169,7 @@ static int option_server_mode;
 
 int pmu_battery_count;
 int pmu_cur_battery;
-unsigned int pmu_power_flags;
+unsigned int pmu_power_flags = PMU_PWR_AC_PRESENT;
 struct pmu_battery_info pmu_batteries[PMU_MAX_BATTERIES];
 static int query_batt_timer = BATTERY_POLLING_COUNT;
 static struct adb_request batt_req;

  reply	other threads:[~2007-02-10 20:38 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-10 20:35 [PATCH] move variables in drivers/macintosh to bss Olaf Hering
2007-02-10 20:36 ` [PATCH] add delay around sl82c105_reset_engine calls Olaf Hering
2007-02-10 20:37   ` [PATCH] cleanup variable usage in mesh interrupt handler Olaf Hering
2007-02-10 20:38     ` [PATCH] mark winbond IDE PCI resources with start 0 as unassigned Olaf Hering
2007-02-10 20:40       ` Olaf Hering [this message]
2007-02-15 23:09   ` [PATCH] add delay around sl82c105_reset_engine calls Jeff Garzik
2007-02-16  9:20     ` [PATCH] use winbond libata instead of ide driver for pseries CD drives Olaf Hering
2007-02-16 13:52       ` Sergei Shtylyov
2007-02-16 13:52         ` Sergei Shtylyov
2007-02-16 14:51         ` Sergei Shtylyov
2007-02-16 14:53         ` Bartlomiej Zolnierkiewicz
2007-02-16 14:53           ` Bartlomiej Zolnierkiewicz
2007-02-16 14:55           ` Sergei Shtylyov
2007-02-16 14:55             ` Sergei Shtylyov
2007-02-16 15:09             ` Bartlomiej Zolnierkiewicz
2007-02-16 15:09               ` Bartlomiej Zolnierkiewicz
2007-02-16 15:06               ` Sergei Shtylyov
2007-02-16 15:06                 ` Sergei Shtylyov
2007-02-16 15:11                 ` Sergei Shtylyov
2007-02-16 15:11                   ` Sergei Shtylyov
2007-02-16 21:41             ` Benjamin Herrenschmidt
2007-02-16 14:46       ` Bartlomiej Zolnierkiewicz
2007-02-16 14:46         ` Bartlomiej Zolnierkiewicz
2007-02-16 14:51         ` Bartlomiej Zolnierkiewicz
2007-02-16 14:51           ` Bartlomiej Zolnierkiewicz
2007-02-16 17:37         ` Olaf Hering
2007-02-16 17:37           ` Olaf Hering
2007-02-17 20:36       ` Jeff Garzik
2007-02-17 20:36         ` Jeff Garzik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070210204000.GA25638@aepfle.de \
    --to=olaf@aepfle.de \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=paulus@samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.