linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* details, details ...
@ 2008-08-13 12:01 Kevin Diggs
  2008-08-13 13:00 ` Arnd Bergmann
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin Diggs @ 2008-08-13 12:01 UTC (permalink / raw)
  To: linuxppc-dev

Hi,

In cpu exit function of a cpufreq driver:

         while (test_bit(cf750gxmChangingPllBit, &cf750gxvStateBits))
                 msleep(1);

This bit will get cleared by a notifier callback.

In module_exit function of a related module:

         while (test_bit(PLL_LOCK_BIT, (unsigned long *)&boot_ratio)) {
                 msleep(1);
         }

This bit will get cleared by a timer. It will also fire the notifiers 
needed above.

I don't think these are in interrupt context. The sleeps ok here?

Also, from checkpatch:

ERROR: do not initialise externals to 0 or NULL
#2483: FILE: arch/powerpc/kernel/cpu/pll_if.c:486:
+int rval = 0;

ERROR: do not initialise statics to 0 or NULL
#2058: FILE: arch/powerpc/kernel/cpu/pll_if.c:61:
+static unsigned int override_bus_clock = 0;

Huh? What? Anyone care to teach an old dog a new trick???

kevin

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-08-14  4:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-13 12:01 details, details Kevin Diggs
2008-08-13 13:00 ` Arnd Bergmann
     [not found]   ` <48A33E6B.9010200@hypersurf.com>
     [not found]     ` <200808132305.45507.arnd@arndb.de>
2008-08-14  4:35       ` Kevin Diggs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).