summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/smp-tbsync.c
Commit message (Collapse)AuthorAgeFilesLines
* [POWERPC] Replace kmalloc+memset with kzallocYan Burman2006-12-041-2/+1Star
| | | | | | | Replace kmalloc+memset with kzalloc. Signed-off-by: Yan Burman <burman.yan@gmail.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
* [POWERPC] Fix wraparound problem in smp-tbsync on 32-bitAdrian Cox2006-12-041-1/+1
| | | | | | | | | | The patch below fixes an arithmetic wrap-around issue on 32bit machines using smp-tbsync. Without this patch a timebase value over 0x000000007fffffff will hang the boot process while bringing up secondary CPUs. Signed-off-by: Adrian Cox <adrian@humboldt.co.uk> Signed-off-by: Paul Mackerras <paulus@samba.org>
* [POWERPC] Fix irq enable/disable in smp_generic_take_timebasePaul Mackerras2006-08-301-2/+3
| | | | | | | | | | | | | Eran Ben-Avi <eranpublic@yahoo.com> pointed out that the arch/ppc version of smp_generic_take_timebase disables interrupts on entry but exits without restoring them. However, both it and the arch/powerpc version have another problem, which is that they use local_irq_disable/enable rather than local_irq_save/restore, and they are called with interrupts disabled. This fixes both problems; it changes a return to a break in the arch/ppc version, and changes both versions to use local_irq_save/restore. Signed-off-by: Paul Mackerras <paulus@samba.org>
* Remove obsolete #include <linux/config.h>Jörn Engel2006-06-301-1/+0Star
| | | | | Signed-off-by: Jörn Engel <joern@wohnheim.fh-wedel.de> Signed-off-by: Adrian Bunk <bunk@stusta.de>
* powerpc: Merge smp-tbsync.c (the generic timebase sync routine)Paul Mackerras2005-11-041-0/+171
Signed-off-by: Paul Mackerras <paulus@samba.org>