Skip to content

Commit

Permalink
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
Browse files Browse the repository at this point in the history
…/git/egtvedt/linux-avr32

Pull AVR32 fixes from Hans-Christian Egtvedt.

Fix build warnings and use the Kbuild infrastructure for generic headers
rather than doing it by hand.

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/egtvedt/linux-avr32:
  avr32: cast syscall_return to silence compiler warning
  avr32: fix clockevents kernel warning
  avr32: use Kbuild infrastructure to handle the asm-generic headers
  • Loading branch information
Linus Torvalds committed Sep 30, 2013
2 parents 8945546 + 395e73a commit 5c282e8
Show file tree
Hide file tree
Showing 17 changed files with 24 additions and 73 deletions.
16 changes: 15 additions & 1 deletion arch/avr32/include/asm/Kbuild
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@

generic-y += clkdev.h
generic-y += cputime.h
generic-y += delay.h
generic-y += device.h
generic-y += div64.h
generic-y += emergency-restart.h
generic-y += exec.h
generic-y += trace_clock.h
generic-y += futex.h
generic-y += irq_regs.h
generic-y += param.h
generic-y += local.h
generic-y += local64.h
generic-y += percpu.h
generic-y += scatterlist.h
generic-y += sections.h
generic-y += topology.h
generic-y += trace_clock.h
generic-y += xor.h
6 changes: 0 additions & 6 deletions arch/avr32/include/asm/cputime.h

This file was deleted.

1 change: 0 additions & 1 deletion arch/avr32/include/asm/delay.h

This file was deleted.

7 changes: 0 additions & 7 deletions arch/avr32/include/asm/device.h

This file was deleted.

6 changes: 0 additions & 6 deletions arch/avr32/include/asm/div64.h

This file was deleted.

6 changes: 0 additions & 6 deletions arch/avr32/include/asm/emergency-restart.h

This file was deleted.

6 changes: 0 additions & 6 deletions arch/avr32/include/asm/futex.h

This file was deleted.

1 change: 0 additions & 1 deletion arch/avr32/include/asm/irq_regs.h

This file was deleted.

6 changes: 0 additions & 6 deletions arch/avr32/include/asm/local.h

This file was deleted.

1 change: 0 additions & 1 deletion arch/avr32/include/asm/local64.h

This file was deleted.

6 changes: 0 additions & 6 deletions arch/avr32/include/asm/percpu.h

This file was deleted.

6 changes: 0 additions & 6 deletions arch/avr32/include/asm/scatterlist.h

This file was deleted.

6 changes: 0 additions & 6 deletions arch/avr32/include/asm/sections.h

This file was deleted.

6 changes: 0 additions & 6 deletions arch/avr32/include/asm/topology.h

This file was deleted.

6 changes: 0 additions & 6 deletions arch/avr32/include/asm/xor.h

This file was deleted.

2 changes: 1 addition & 1 deletion arch/avr32/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ int copy_thread(unsigned long clone_flags, unsigned long usp,
memset(childregs, 0, sizeof(struct pt_regs));
p->thread.cpu_context.r0 = arg;
p->thread.cpu_context.r1 = usp; /* fn */
p->thread.cpu_context.r2 = syscall_return;
p->thread.cpu_context.r2 = (unsigned long)syscall_return;
p->thread.cpu_context.pc = (unsigned long)ret_from_kernel_thread;
childregs->sr = MODE_SUPERVISOR;
} else {
Expand Down
9 changes: 8 additions & 1 deletion arch/avr32/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,14 @@ static void comparator_mode(enum clock_event_mode mode,
case CLOCK_EVT_MODE_SHUTDOWN:
sysreg_write(COMPARE, 0);
pr_debug("%s: stop\n", evdev->name);
cpu_idle_poll_ctrl(false);
if (evdev->mode == CLOCK_EVT_MODE_ONESHOT ||
evdev->mode == CLOCK_EVT_MODE_RESUME) {
/*
* Only disable idle poll if we have forced that
* in a previous call.
*/
cpu_idle_poll_ctrl(false);
}
break;
default:
BUG();
Expand Down

0 comments on commit 5c282e8

Please sign in to comment.