1. 20 7月, 2007 2 次提交
    • P
      sh: cpufreq: Fix driver dependencies and flag as broken. · 792e947a
      Paul Mundt 提交于
      This is only supported on SH-4, so don't expose it for the other
      CPUs. Additionally, it's suffered some bitrot, so add a BROKEN
      dependency as well until we fix it up.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      792e947a
    • M
      sh: intc - shared IPR and INTC2 controller · 02ab3f70
      Magnus Damm 提交于
      This is the second version of the shared interrupt controller patch
      for the sh architecture, fixing up handling of intc_reg_fns[].
      
      The three main advantages with this controller over the existing
      ones are:
      
      	- Both priority (ipr) and bitmap (intc2) registers are
      	  supported
      	- External pin sense configuration is supported, ie edge
      	  vs level triggered
      	- CPU/Board specific code maps 1:1 with datasheet for
      	  easy verification
      
      This controller can easily coexist with the current IPR and INTC2
      controllers, but the idea is that CPUs/Boards should be moved over
      to this controller over time so we have a single code base to
      maintain.
      Signed-off-by: NMagnus Damm <damm@igel.co.jp>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      02ab3f70
  2. 20 6月, 2007 2 次提交
  3. 11 6月, 2007 1 次提交
  4. 08 6月, 2007 3 次提交
    • P
      sh: Fix SH-4 CPU selects. · 05627486
      Paul Mundt 提交于
      Now that select no longer works for selecting the "closest" CPU,
      we have to explicitly reference the precise sub-type in the few
      places where it actually matters (presently only setup code and
      some legacy sh-sci cruft).
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      05627486
    • P
      sh: Rip out special unknown machvec. · fd8f20e8
      Paul Mundt 提交于
      This kills off the BareCPU board as a "special" machvec, rather,
      we leave this as a default for when no other vector is available,
      or when we want to use it in combination with other vectors for
      testing with generic ops. As sh_mv is copied out anyways (or
      overloaded when an alternate vector is explicitly selected), this
      doesn't consume any additional memory.
      
      The generic machvec can be forcibly selected with sh_mv=generic,
      or by not having any other boards enabled.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      fd8f20e8
    • P
      sh: Rework CPU/board dependencies. · f3d22298
      Paul Mundt 提交于
      This was a big mess, rework the logic a bit so that we constrain
      to a particular subtype and figure out the board support based
      on that. This makes building subtype specific kernels supporting
      multiple boards possible again.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      f3d22298
  5. 09 5月, 2007 1 次提交
    • P
      sh: clockevent/clocksource/hrtimers/nohz TMU support. · 57be2b48
      Paul Mundt 提交于
      This adds basic support for clockevents and clocksources,
      presently only implemented for TMU-based systems (which
      are the majority of SH-3 and SH-4 systems).
      
      The old NO_IDLE_HZ implementation is also dropped completely,
      the only users of this were on TMU-based systems anyways.
      
      More work needs to be done to generalize the TMU handling,
      in that the current implementation is rather tied to the
      notion of TMU0 and TMU1 utilization.
      
      Additionally, as more SH timers switch over to this scheme,
      we'll be able to gut most of the remaining system timer
      infrastructure that existed before.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      57be2b48
  6. 07 5月, 2007 7 次提交
  7. 14 2月, 2007 1 次提交
  8. 13 2月, 2007 3 次提交
  9. 10 2月, 2007 1 次提交
  10. 12 12月, 2006 1 次提交
  11. 09 12月, 2006 1 次提交
    • D
      [PATCH] LOG2: Implement a general integer log2 facility in the kernel · f0d1b0b3
      David Howells 提交于
      This facility provides three entry points:
      
      	ilog2()		Log base 2 of unsigned long
      	ilog2_u32()	Log base 2 of u32
      	ilog2_u64()	Log base 2 of u64
      
      These facilities can either be used inside functions on dynamic data:
      
      	int do_something(long q)
      	{
      		...;
      		y = ilog2(x)
      		...;
      	}
      
      Or can be used to statically initialise global variables with constant values:
      
      	unsigned n = ilog2(27);
      
      When performing static initialisation, the compiler will report "error:
      initializer element is not constant" if asked to take a log of zero or of
      something not reducible to a constant.  They treat negative numbers as
      unsigned.
      
      When not dealing with a constant, they fall back to using fls() which permits
      them to use arch-specific log calculation instructions - such as BSR on
      x86/x86_64 or SCAN on FRV - if available.
      
      [akpm@osdl.org: MMC fix]
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Herbert Xu <herbert@gondor.apana.org.au>
      Cc: David Howells <dhowells@redhat.com>
      Cc: Wojtek Kaniewski <wojtekka@toxygen.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      f0d1b0b3
  12. 06 12月, 2006 8 次提交
  13. 30 11月, 2006 1 次提交
  14. 06 10月, 2006 1 次提交
    • P
      sh: First step at generic timeofday support. · 45882145
      Paul Mundt 提交于
      At the moment we wrap GENERIC_TIME around our existing timer API.
      As boards start providing their own clocksources, they're able to
      select GENERIC_TIME accordingly and optimize out most of the timer
      API.
      
      Once the current timers have been reworked as proper clocksource
      drivers, the rest of the place holders for the timer API can go
      away and we can flip on GENERIC_TIME unconditionally.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      45882145
  15. 03 10月, 2006 1 次提交
  16. 27 9月, 2006 6 次提交