cpufreq Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Sebastian Witt <hasw@hasw.net>
To: cpufreq@lists.linux.org.uk
Subject: [PATCH] cpufreq-nforce2 divider
Date: Sun, 04 Jun 2006 19:42:16 +0200	[thread overview]
Message-ID: <44831B78.6050407@hasw.net> (raw)

Patch against 2.6.16. Sets minimum PLL divider to 2. No negative impact when 
tested with two nForce2 based boards. (Updates also the (C) year)

Signed-off-by: Sebastian Witt <se.witt <at> gmx net>
---

--- linux-2.6.16-gentoo-r7.orig/arch/i386/kernel/cpu/cpufreq/cpufreq-nforce2.c 
2006-06-04 19:32:29.000000000 +0200
+++ linux-2.6.16-gentoo-r7/arch/i386/kernel/cpu/cpufreq/cpufreq-nforce2.c 
2006-06-04 19:32:42.000000000 +0200                     @@ -1,5 +1,5 @@
  /*
- * (C) 2004  Sebastian Witt <se.witt@gmx.net>
+ * (C) 2004-2006  Sebastian Witt <se.witt@gmx.net>
   *
   *  Licensed under the terms of the GNU GPL License version 2.
   *  Based upon reverse engineered information
@@ -90,7 +90,7 @@

         /* Try to calculate multiplier and divider up to 4 times */
         while (((mul == 0) || (div == 0)) && (tried <= 3)) {
-               for (xdiv = 1; xdiv <= 0x80; xdiv++)
+               for (xdiv = 2; xdiv <= 0x80; xdiv++)
                         for (xmul = 1; xmul <= 0xfe; xmul++)
                                 if (nforce2_calc_fsb(NFORCE2_PLL(xmul, xdiv)) ==
                                     fsb + tried) {

             reply	other threads:[~2006-06-04 17:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-04 17:42 Sebastian Witt [this message]
2006-06-04 23:42 ` [PATCH] cpufreq-nforce2 divider Dave Jones
2006-06-05 19:18   ` Sebastian Witt
2006-06-05 19:24     ` Dave Jones
     [not found]     ` <20060606214323.77785.qmail@web33604.mail.mud.yahoo.com>
2006-06-06 23:26       ` REMOVE ME FROM LIST!!! Dave Jones

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=44831B78.6050407@hasw.net \
    --to=hasw@hasw.net \
    --cc=cpufreq@lists.linux.org.uk \
    /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