public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: paul.devriendt@amd.com
Cc: davej@redhat.com, cpufreq@www.linux.org.uk,
	linux-kernel@vger.kernel.org, davej@codemonkey.ork.uk
Subject: Re: powernow-k8-acpi driver
Date: Thu, 4 Mar 2004 13:35:23 +0100	[thread overview]
Message-ID: <20040304123523.GD308@elf.ucw.cz> (raw)
In-Reply-To: <99F2150714F93F448942F9A9F112634C109A392F@txexmtae.amd.com>

Hi!

> >> you're aware of Dominik/Bruno's work on the 'acpilib'[1] stuff in this 
> >> area right ? We'll need that anyway for Powernow-k7 and maybe longhaul 
> >> too and its senseless duplicating this code.
> > 
> > That [1] looks like promise of url, but I don't see that url.
> 
> No, I am not aware of this, and I think Dominik is out for a few days.
> If there is some sort of library functionality I can use and eliminate
> code in the powernow-k8 driver, I will glad make the change to use
> >> it.

This fixes typo, makes pollflg normal (no need for volatile, it is
protected by poll_sem) and fixes assignment. Please apply,

								Pavel

--- tmp/linux/arch/i386/kernel/cpu/cpufreq/powernow-k8-acpi.c	2004-03-04 13:26:34.000000000 +0100
+++ linux/arch/i386/kernel/cpu/cpufreq/powernow-k8-acpi.c	2004-03-04 13:24:12.000000000 +0100
@@ -36,14 +36,14 @@
 #include <asm/io.h>
 #include <asm/delay.h>
 
-#define DEBUG
-#define VERSION "Version 1.20.02, Mar 1, 2004"
+#undef DEBUG
+#define VERSION "Version 1.20.02a"
 #include "powernow-k8-acpi.h"
 
 static u8 **procs;                  /* per processor data structure     */
 static u32 rstps;                   /* pstates allowed restrictions     */
 static u32 seenrst;                 /* remember old bat restrictions    */
-static volatile int pollflg;        /* remember the state of the poller */
+static int pollflg;	            /* remember the state of the poller, protected by poll_sem */
 static int acpierr;                 /* retain acpi error across walker  */
 static acpi_handle ppch;	    /* handle of the ppc object         */
 static acpi_handle psrh;            /* handle of the acpi power object  */
@@ -857,7 +857,7 @@
 	return 0;
 }
 
-/* transiion if needed, restart if needed */
+/* transition if needed, restart if needed */
 static void ac_poller(unsigned long x)  
 {
 	int pow;
@@ -870,7 +870,7 @@
 
 	down(&poll_sem);
 	if (pollflg == POLLER_UNLOAD) {
-		pollflg == POLLER_DEAD;
+		pollflg = POLLER_DEAD;
 		up(&poll_sem);
 		return;
 	}


-- 
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]

  reply	other threads:[~2004-03-04 12:37 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-03 23:48 powernow-k8-acpi driver paul.devriendt
2004-03-04 12:35 ` Pavel Machek [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-03-04  2:00 richard.brunner
2004-03-04 23:16 ` Pavel Machek
2004-03-03 23:57 paul.devriendt
2004-03-04 13:44 ` Pavel Machek
2004-03-03 21:54 Pavel Machek
2004-03-03 22:27 ` Dave Jones
2004-03-03 22:35   ` Pavel Machek
2004-03-03 22:48     ` Dave Jones
2004-03-03 22:54       ` Pavel Machek
2004-03-03 23:36         ` Dave Jones
2004-03-04  0:07           ` Pavel Machek
2004-03-04  9:38             ` Russell King
2004-03-05 19:18             ` Bruno Ducrot
2004-03-07 13:15               ` Colin Marquardt
2004-03-03 23:09       ` Pavel Machek
2004-03-03 23:11       ` Pavel Machek
2004-03-03 23:39         ` Dave Jones
2004-03-03 23:45           ` Pavel Machek
2004-03-03 23:26       ` Pavel Machek

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=20040304123523.GD308@elf.ucw.cz \
    --to=pavel@ucw.cz \
    --cc=cpufreq@www.linux.org.uk \
    --cc=davej@codemonkey.ork.uk \
    --cc=davej@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paul.devriendt@amd.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox