diff options
| author | Ingo Molnar <mingo@elte.hu> | 2009-11-17 10:16:43 +0100 | 
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2009-11-17 10:17:47 +0100 | 
| commit | a7b63425a41cd6a8d50f76fef0660c5110f97e91 (patch) | |
| tree | be17ee121f1c8814d8d39c9f3e0205d9397fab54 /arch/m32r/kernel | |
| parent | 35039eb6b199749943547c8572be6604edf00229 (diff) | |
| parent | 3726cc75e581c157202da93bb2333cce25c15c98 (diff) | |
Merge branch 'perf/core' into perf/probes
Resolved merge conflict in tools/perf/Makefile
Merge reason: we want to queue up a dependent patch.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/m32r/kernel')
| -rw-r--r-- | arch/m32r/kernel/smp.c | 2 | ||||
| -rw-r--r-- | arch/m32r/kernel/time.c | 6 | ||||
| -rw-r--r-- | arch/m32r/kernel/vmlinux.lds.S | 2 | 
3 files changed, 6 insertions, 4 deletions
diff --git a/arch/m32r/kernel/smp.c b/arch/m32r/kernel/smp.c index 8a88f1f0a3e..31cef20b299 100644 --- a/arch/m32r/kernel/smp.c +++ b/arch/m32r/kernel/smp.c @@ -806,7 +806,7 @@ unsigned long send_IPI_mask_phys(cpumask_t physid_mask, int ipi_num,  	if (mask & ~physids_coerce(phys_cpu_present_map))  		BUG(); -	if (ipi_num >= NR_IPIS) +	if (ipi_num >= NR_IPIS || ipi_num < 0)  		BUG();  	mask <<= IPI_SHIFT; diff --git a/arch/m32r/kernel/time.c b/arch/m32r/kernel/time.c index e7fee0f198d..9cedcef1157 100644 --- a/arch/m32r/kernel/time.c +++ b/arch/m32r/kernel/time.c @@ -75,7 +75,7 @@ u32 arch_gettimeoffset(void)  		count = 0;  	count = (latch - count) * TICK_SIZE; -	elapsed_time = (count + latch / 2) / latch; +	elapsed_time = DIV_ROUND_CLOSEST(count, latch);  	/* NOTE: LATCH is equal to the "interval" value (= reload count). */  #else /* CONFIG_SMP */ @@ -93,7 +93,7 @@ u32 arch_gettimeoffset(void)  	p_count = count;  	count = (latch - count) * TICK_SIZE; -	elapsed_time = (count + latch / 2) / latch; +	elapsed_time = DIV_ROUND_CLOSEST(count, latch);  	/* NOTE: LATCH is equal to the "interval" value (= reload count). */  #endif /* CONFIG_SMP */  #elif defined(CONFIG_CHIP_M32310) @@ -211,7 +211,7 @@ void __init time_init(void)  		bus_clock = boot_cpu_data.bus_clock;  		divide = boot_cpu_data.timer_divide; -		latch = (bus_clock/divide + HZ / 2) / HZ; +		latch = DIV_ROUND_CLOSEST(bus_clock/divide, HZ);  		printk("Timer start : latch = %ld\n", latch); diff --git a/arch/m32r/kernel/vmlinux.lds.S b/arch/m32r/kernel/vmlinux.lds.S index 8ceb6181d80..7da94eaa082 100644 --- a/arch/m32r/kernel/vmlinux.lds.S +++ b/arch/m32r/kernel/vmlinux.lds.S @@ -42,6 +42,8 @@ SECTIONS    _etext = .;			/* End of text section */    EXCEPTION_TABLE(16) +  NOTES +    RODATA    RW_DATA_SECTION(32, PAGE_SIZE, THREAD_SIZE)    _edata = .;			/* End of data section */  | 
