Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
This commit is contained in:
@ -63,6 +63,15 @@ asmlinkage long sys_mmap2(unsigned long addr, unsigned long len,
|
||||
unsigned long prot, unsigned long flags,
|
||||
unsigned long fd, unsigned long pgoff)
|
||||
{
|
||||
/*
|
||||
* The shift for mmap2 is constant, regardless of PAGE_SIZE
|
||||
* setting.
|
||||
*/
|
||||
if (pgoff & ((1 << (PAGE_SHIFT - 12)) - 1))
|
||||
return -EINVAL;
|
||||
|
||||
pgoff >>= PAGE_SHIFT - 12;
|
||||
|
||||
return do_mmap2(addr, len, prot, flags, fd, pgoff);
|
||||
}
|
||||
|
||||
|
@ -209,7 +209,7 @@ unsigned long long sched_clock(void)
|
||||
if (!clocksource_sh.rating)
|
||||
return (unsigned long long)jiffies * (NSEC_PER_SEC / HZ);
|
||||
|
||||
cycles = clocksource_sh.read();
|
||||
cycles = clocksource_sh.read(&clocksource_sh);
|
||||
return cyc2ns(&clocksource_sh, cycles);
|
||||
}
|
||||
#endif
|
||||
|
@ -81,7 +81,7 @@ static int tmu_timer_stop(void)
|
||||
*/
|
||||
static int tmus_are_scaled;
|
||||
|
||||
static cycle_t tmu_timer_read(void)
|
||||
static cycle_t tmu_timer_read(struct clocksource *cs)
|
||||
{
|
||||
return ((cycle_t)(~_tmu_read(TMU1)))<<tmus_are_scaled;
|
||||
}
|
||||
|
Reference in New Issue
Block a user