Re: [PATCH 2/4] Add cpufreq driver for the IBM PowerPC 750GX

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Kevin Diggs
Date: Monday, August 25, 2008 - 5:57 pm

Arnd Bergmann wrote:
For reasons I'd rather not go into, my email address is not likely
to remain valid for much longer.
Are cf750gxm_CHANGING_PLL and cf750gxm_CHANGING_PLL_BIT_POS ok?
done
done
Now that I look at it the _t is supposed to be at the end. It is
meant to indicate that this is a structure tag or type. I'll
remove it.
They are a spceification of the processor itself. Should be
the same for any board using the 750GX (or FX).
The first 3 are module parameters. For the first 2, 0 means
that they were not set. minmaxmode is a boolean. 0 is the
default of disabled.

When I was initially writing the code I figured I would
need the min and max core frequencies in several places.
As it turns out they are only used in the code
initialization routine (cf750gx_init()). I have made
them locals.

..._idle_pll_off is a boolean for a sysfs attribute. 0 is
the default of disabled.

..._min_max_mode is a boolean to hold the state of
minmaxmode. Seems to be only used to print the current
value.

..._state_bits is a global to maintain state.

Does the PowerPC suffer any performance penalties when
accessing shorts compared to ints? Can I save a few bytes
by using shorts?
How big of a problem is this? I regret the decision to rip
the SMP stuff out. But it is kinda done. If absolutely
necessary I can put these into a structure?
Just a coding style thing. I put declarations (or definitions -
I get the two confused?) on the same indent as the block they are
in. Is this a 15 yard illegal procedure penalty?
done
and done
done
Nope, just a faulty programmer ...
This was stolen from the ACPI Processor P-States Driver. Given the
frequency of calls I would guess it does not make a difference.
same here ...
This from a code readability standpoint? Or an efficiency one?
I think the cpufreq stuff has a debug configure option that
disables compilation of these unless enabled.
I'll fix this.
deleted.
Just a little sneaky. I should document in the kernel doc though.
done.
Originall I had something like:

	while(some_bit_is_still_set)
		sleep

I think you suggested I use a completion because it is in
fact simpler than a sleep. Now that I think about it also seems
intuitive to give the system a hint as to when something will
be done. 'complete' just means there is no timer pending (unless,
of course, I screwed up the code).
Purely a feature of the CPU. From what I know, voltage scaling
is an important part of reducing power comsumption. That would
be platform specific code. Anyone know if this is possible for
any 750GX based system? As far as I know it is not possible on
mine?
done

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 2/4] Add cpufreq driver for the IBM PowerPC 750GX, Kevin Diggs, (Mon Aug 25, 5:57 pm)
Re: [PATCH 2/4] Add cpufreq driver for the IBM PowerPC 750GX, Geert Uytterhoeven, (Wed Aug 27, 4:40 am)