12 Dec, 2006
21 commits
-
This adds in support for the BUG() trap on SH-2.
Signed-off-by: Yoshinori Sato
Signed-off-by: Paul Mundt -
Signed-off-by: Paul Mundt
-
Signed-off-by: Paul Mundt
-
This had a bogus .data.idt reference, fix it up..
Signed-off-by: Paul Mundt
-
Add the SCIF IRQs to the IPR table for SH7722.
Signed-off-by: Paul Mundt
-
This was inadvertently broken when the entry.S code split up,
restore the missing branch and get subsequent traps working
under debug again. This manifested itself as a lockup when
attempting to reload the VBR base.Signed-off-by: Paul Mundt
-
This adds CPU support for the SH7722.
Signed-off-by: Paul Mundt
-
A couple of these were missed.
Signed-off-by: Paul Mundt
-
SH-2 and SH-2A need to use a different syscall base for the trapa
vector than the other parts, so fixup the logic in the kernel_execve()
case.Signed-off-by: Paul Mundt
-
Some time ago the schedule frame size changed and we failed to reflect
this in get_wchan() at the time. This first popped up as a problem on
SH7751R where schedule_frame ended up being unaligned and generating
an unaligned trap. This fixes it up again..Signed-off-by: Paul Mundt
-
Previously we haven't been doing anything with verbose BUG() reporting,
and we've been relying on the oops path for handling BUG()'s, which is
rather sub-optimal.This switches BUG handling to use a fixed trapa vector (#0x3e) where we
construct a small bug frame post trapa instruction to get the context
right. This also makes it trivial to wire up a DIE_BUG for the atomic
die chain, which we couldn't really do before.Signed-off-by: Paul Mundt
-
This can use the generic routines, so kill off the board-specific ones.
Signed-off-by: Yoshinori Sato
Signed-off-by: Paul Mundt -
Signed-off-by: Yoshinori Sato
Signed-off-by: Paul Mundt -
Signed-off-by: Yoshinori Sato
Signed-off-by: Paul Mundt -
This updates the SH7619 and SH7206 code for the IPR IRQ changes.
Signed-off-by: Yoshinori Sato
Signed-off-by: Paul Mundt -
gcc 4 for sh changes the names of some compiler intrinsic functions
and adds some additional ones. This patch adds the new ones, and
fixes up various module symbol resolution issues.Signed-off-by: Stuart Menefy
Signed-off-by: Paul Mundt -
Get the landisk board building again..
Signed-off-by: Paul Mundt
-
Register the RTC resources for the sh775x subtype so that the new
generic RTC support in drivers/rtc/rtc-sh.c will work.Signed-off-by: Jamie Lenehan
Signed-off-by: Paul Mundt -
This adds a new defconfig for SE7619 and updates SE7206.
Signed-off-by: Yoshinori Sato
Signed-off-by: Paul Mundt -
Add a couple of new targets, both for uImage and S-rec generation.
Signed-off-by: Paul Mundt
-
INIT_WORK() dropped the data arg, so now we have to stash an extra
pointer and backpedal instead.Signed-off-by: Paul Mundt
09 Dec, 2006
3 commits
-
Convert SH to use generic ioremap_page_range()
Signed-off-by: Haavard Skinnemoen
Signed-off-by: Paul Mundt
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
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 u64These 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: David Howells
Cc: Benjamin Herrenschmidt
Cc: Paul Mackerras
Cc: Herbert Xu
Cc: David Howells
Cc: Wojtek Kaniewski
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Signed-off-by: Josef Sipek
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
08 Dec, 2006
6 commits
-
After LOADER_TYPE && INITRD_START are true, the short if-condition
for INITRD_START can never be false.Remove unused code from the else condition.
Signed-off-by: Henry Nestler
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
The new shared APM emulation just like its ARM and MIPS predecessors uses
pm_suspend() which was only exported on SH. Move export to close to it's
definition where it really should be anyway.Signed-off-by: Ralf Baechle
Cc: Russell King
Cc: Paul Mundt
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Move process freezing functions from include/linux/sched.h to freezer.h, so
that modifications to the freezer or the kernel configuration don't require
recompiling just about everything.[akpm@osdl.org: fix ueagle driver]
Signed-off-by: Nigel Cunningham
Cc: "Rafael J. Wysocki"
Cc: Pavel Machek
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Replace all uses of kmem_cache_t with struct kmem_cache.
The patch was generated using the following script:
#!/bin/sh
#
# Replace one string by another in all the kernel sources.
#set -e
for file in `find * -name "*.c" -o -name "*.h"|xargs grep -l $1`; do
quilt add $file
sed -e "1,\$s/$1/$2/g" $file >/tmp/$$
mv /tmp/$$ $file
quilt refresh
doneThe script was run like this
sh replace kmem_cache_t "struct kmem_cache"
Signed-off-by: Christoph Lameter
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
SLAB_KERNEL is an alias of GFP_KERNEL.
Signed-off-by: Christoph Lameter
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Following up with the work on shared page table done by Dave McCracken. This
set of patch target shared page table for hugetlb memory only.The shared page table is particular useful in the situation of large number of
independent processes sharing large shared memory segments. In the normal
page case, the amount of memory saved from process' page table is quite
significant. For hugetlb, the saving on page table memory is not the primary
objective (as hugetlb itself already cuts down page table overhead
significantly), instead, the purpose of using shared page table on hugetlb is
to allow faster TLB refill and smaller cache pollution upon TLB miss.With PT sharing, pte entries are shared among hundreds of processes, the cache
consumption used by all the page table is smaller and in return, application
gets much higher cache hit ratio. One other effect is that cache hit ratio
with hardware page walker hitting on pte in cache will be higher and this
helps to reduce tlb miss latency. These two effects contribute to higher
application performance.Signed-off-by: Ken Chen
Acked-by: Hugh Dickins
Cc: Dave McCracken
Cc: William Lee Irwin III
Cc: "Luck, Tony"
Cc: Paul Mackerras
Cc: Benjamin Herrenschmidt
Cc: David Gibson
Cc: Adam Litke
Cc: Paul Mundt
Cc: "David S. Miller"
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
06 Dec, 2006
10 commits
-
The following moves the creation of IPR interupts into setup-7750.c
and updates a few other things to make it all work after the "Drop
CPU subtype IRQ headers" commit. It boots and runs fine on my titan
board.- adds an ipr_idx to the ipr_data and uses a function in the subtype
code to calculate the address of the IPR registers- adds a function to enable individual interrupt mode for externals
in the subtype code and calls that from the titan board code
instead of doing it directly.- I changed the shift in the ipr_data to be the actual # of bits to
shift, instead of the numnber / 4 - made it easier to match with
the manual.Signed-off-by: Jamie Lenehan
Signed-off-by: Paul Mundt -
Signed-off-by: Paul Mundt
-
Since some header inclusion paths were cleaned up, compilation
broke. Add in the headers we need directly to build again.Signed-off-by: Paul Mundt
-
This was missing for sh too, wire it up..
Signed-off-by: Paul Mundt
-
Follows the same change as other architectures..
Signed-off-by: Paul Mundt
-
This adds a platform device for the directly connected
CF interface on R7780RP boards, for use with the
pata_platform libata driver.Signed-off-by: Paul Mundt
-
Wire up all of the essentials for lockdep..
Signed-off-by: Paul Mundt
-
This adds basic NO_IDLE_HZ support to the SH timer API so timers
are able to wire it up. Taken from the ARM version, as it fit in
to our API with very few changes needed.Signed-off-by: Paul Mundt
-
This syncs up the SH clock framework with the linux/clk.h API,
for which there were only some minor changes required, namely
the clk_get() dev_id and subsequent callsites.Signed-off-by: Paul Mundt
-
Since all of the sys_timer sources currently do this on their own
within the ->get_offset() path, it's more sensible to just have
the caller take care of it when grabbing xtime_lock. Incidentally,
this is more in line with what others (ie, ARM) are doing already.Signed-off-by: Paul Mundt