summaryrefslogtreecommitdiffstats
path: root/arch/mips/sibyte
Commit message (Collapse)AuthorAgeFilesLines
* [PATCH] mips: fixed collision of rtc function nameYoichi Yuasa2006-03-271-4/+4
| | | | | | | | | | Fix the collision of rtc function name. Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> Cc: Alessandro Zummo <a.zummo@towertech.it> Cc: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [MIPS] Sibyte: Fix race in sb1250_gettimeoffset().Ralf Baechle2006-03-182-17/+63
| | | | | | | | | | | | | | | | | | | | | | | From Dave Johnson <djohnson+linuxmips@sw.starentnetworks.com>: sb1250_gettimeoffset() simply reads the current cpu 0 timer remaining value, however once this counter reaches 0 and the interrupt is raised, it immediately resets and begins to count down again. If sb1250_gettimeoffset() is called on cpu 1 via do_gettimeofday() after the timer has reset but prior to cpu 0 processing the interrupt and taking write_seqlock() in timer_interrupt() it will return a full value (or close to it) causing time to jump backwards 1ms. Once cpu 0 handles the interrupt and timer_interrupt() gets far enough along it will jump forward 1ms. Fix this problem by implementing mips_hpt_*() on sb1250 using a spare timer unrelated to the existing periodic interrupt timers. It runs at 1Mhz with a full 23bit counter. This eliminated the custom do_gettimeoffset() for sb1250 and allowed use of the generic fixed_rate_gettimeoffset() using mips_hpt_*() and timerhi/timerlo. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* [MIPS] Sibyte: Fix interrupt timer off by one bug.Ralf Baechle2006-03-181-2/+2
| | | | | | | | | From Dave Johnson <djohnson+linuxmips@sw.starentnetworks.com>: The timers need to be loaded with 1 less than the desired interval not the interval itself. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* [MIPS] SMP: Fix initialization order bug.Ralf Baechle2006-02-271-3/+7
| | | | | | | | | | | | | | A recent change requires cpu_possible_map to be initialized before smp_sched_init() but most MIPS platforms were initializing their processors in the prom_prepare_cpus callback of smp_prepare_cpus. The simple fix of calling prom_prepare_cpus from one of the earlier SMP initialization hooks doesn't work well either since IPIs may require init_IRQ() to have completed, so bit the bullet and split prom_prepare_cpus into two initialization functions, plat_smp_setup which is called early from setup_arch and plat_prepare_cpus called where prom_prepare_cpus used to be called. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* [MIPS] Fix compiler warnings in arch/mips/sibyte/bcm1480/irq.cMartin Michlmayr2006-02-211-3/+2Star
| | | | | | | | | | | | | Fix the following compiler warnings: CC arch/mips/sibyte/bcm1480/irq.o arch/mips/sibyte/bcm1480/irq.c: In function ‘bcm1480_set_affinity’: arch/mips/sibyte/bcm1480/irq.c:168: warning: ISO C90 forbids mixed declarations and code arch/mips/sibyte/bcm1480/irq.c: In function ‘ack_bcm1480_irq’: arch/mips/sibyte/bcm1480/irq.c:230: warning: ISO C90 forbids mixed declarations and code Signed-off-by: Martin Michlmayr <tbm@cyrius.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* [MIPS] Sibyte: Config option names shouldn't be prefixed with CONFIG_Ralf Baechle2006-02-211-2/+2
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* [MIPS] Reformat to 80 columns.Ralf Baechle2006-02-071-8/+19
| | | | | | Patch courtesy of Emily Postnews ;-) Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* [MIPS] Sibyte: Make all setup functions __init.Ralf Baechle2006-02-071-4/+5
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* [MIPS] Rename _machine_power_off to pm_power_off so the kernel builds again.Ralf Baechle2006-02-072-2/+4
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* [PATCH] mips: task_thread_info()Al Viro2006-01-121-1/+1
| | | | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* Use rtc_lock to protect RTC operationsAtsushi Nemoto2005-11-072-0/+13
| | | | | | | | | Many RTC routines were not protected against each other, so there are potential races, for example, ntp-update against /dev/rtc. This patch fixes them using rtc_lock. Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* SB1 cache exception handling.Andrew Isaacson2005-10-291-0/+8
| | | | | | | | Expand SB1 cache error handling by adding SB1_CEX_ALWAYS_FATAL and SB1_CEX_STALL, allowing configurable behavior on cache errors. Signed-Off-By: Andy Isaacson <adi@broadcom.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Add support for BCM1480 family of chips.Andrew Isaacson2005-10-299-2/+1080
| | | | | | | | | - Kconfig and Makefile changes - arch/mips/sibyte/bcm1480/ - changes to sibyte common code to support 1480 Signed-Off-By: Andy Isaacson <adi@broadcom.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* No need to explicitly call __read_64bit_c0_split; __read_64bit_c0_registerRalf Baechle2005-10-291-6/+1Star
| | | | | | will do that itself iff needed. Fix format string. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Use cpumask_t rather than hand-rolled bitmask code in sb1250_set_affinity.Andrew Isaacson2005-10-291-11/+4Star
| | | | | Signed-Off-By: Andrew Isaacson <adi@broadcom.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Switch Sibyte profiling driver to ->compat_ioctlRalf Baechle2005-10-291-5/+8
| | | | | Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Do the timer interrupt only once on CPU 0 ...Ralf Baechle2005-10-291-8/+9
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Don't redeclare ll_local_timer_interrupt.Ralf Baechle2005-10-291-1/+0Star
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Convert struct hw_interrupt_type initializations to ISO C99 namedRalf Baechle2005-10-291-10/+8Star
| | | | | | initializers. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Switch SiByte drivers back to __raw_*() functions.Maciej W. Rozycki2005-10-299-195/+206
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Move Sibyte Kconfig stuff into it's own Kconfig.Ralf Baechle2005-10-291-0/+143
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Replace deprecated interruptible_sleep_on() function call with directRalf Baechle2005-10-291-2/+9
| | | | | | wait-queue usage. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Get rid of early_init. There's more need to make this form ofRalf Baechle2005-10-291-5/+1Star
| | | | | | | initialization actually useful and as is certainly unmergable with upstream. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* [PATCH] mips: nuke trailing whitespaceRalf Baechle2005-09-058-19/+19
| | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [PATCH] mips: clean up 32/64-bit configurationRalf Baechle2005-09-052-2/+2
| | | | | | | | Start cleaning 32-bit vs. 64-bit configuration. Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* Linux-2.6.12-rc2Linus Torvalds2005-04-1723-0/+4143
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!