Remove the last few places where a pointer to pt_regs gets passed.
Also make sure we call set_irq_regs() before irq_enter() and after
irq_exit(). This doesn't fix anything but makes sure s390 looks the
same like all other architectures.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
*
* schedule work and reschedule timer
*/
*
* schedule work and reschedule timer
*/
-static void appldata_timer_function(unsigned long data, struct pt_regs *regs)
+static void appldata_timer_function(unsigned long data)
{
P_DEBUG(" -= Timer =-\n");
P_DEBUG("CPU: %i, expire_count: %i\n", smp_processor_id(),
{
P_DEBUG(" -= Timer =-\n");
P_DEBUG("CPU: %i, expire_count: %i\n", smp_processor_id(),
int index;
struct pt_regs *old_regs;
int index;
struct pt_regs *old_regs;
old_regs = set_irq_regs(regs);
old_regs = set_irq_regs(regs);
asm volatile ("mc 0,0");
if (S390_lowcore.int_clock >= S390_lowcore.jiffy_timer)
/**
asm volatile ("mc 0,0");
if (S390_lowcore.int_clock >= S390_lowcore.jiffy_timer)
/**
- set_irq_regs(old_regs);
+ set_irq_regs(old_regs);
}
EXPORT_SYMBOL(register_external_interrupt);
}
EXPORT_SYMBOL(register_external_interrupt);
* Do the callback functions of expired vtimer events.
* Called from within the interrupt handler.
*/
* Do the callback functions of expired vtimer events.
* Called from within the interrupt handler.
*/
-static void do_callbacks(struct list_head *cb_list, struct pt_regs *regs)
+static void do_callbacks(struct list_head *cb_list)
{
struct vtimer_queue *vt_list;
struct vtimer_list *event, *tmp;
{
struct vtimer_queue *vt_list;
struct vtimer_list *event, *tmp;
- void (*fn)(unsigned long, struct pt_regs*);
+ void (*fn)(unsigned long);
unsigned long data;
if (list_empty(cb_list))
unsigned long data;
if (list_empty(cb_list))
list_for_each_entry_safe(event, tmp, cb_list, entry) {
fn = event->function;
data = event->data;
list_for_each_entry_safe(event, tmp, cb_list, entry) {
fn = event->function;
data = event->data;
if (!event->interval)
/* delete one shot timer */
if (!event->interval)
/* delete one shot timer */
list_move_tail(&event->entry, &cb_list);
}
spin_unlock(&vt_list->lock);
list_move_tail(&event->entry, &cb_list);
}
spin_unlock(&vt_list->lock);
- do_callbacks(&cb_list, get_irq_regs());
+ do_callbacks(&cb_list);
/* next event is first in list */
spin_lock(&vt_list->lock);
/* next event is first in list */
spin_lock(&vt_list->lock);
struct irb *irb;
struct pt_regs *old_regs;
struct irb *irb;
struct pt_regs *old_regs;
old_regs = set_irq_regs(regs);
old_regs = set_irq_regs(regs);
asm volatile ("mc 0,0");
if (S390_lowcore.int_clock >= S390_lowcore.jiffy_timer)
/**
asm volatile ("mc 0,0");
if (S390_lowcore.int_clock >= S390_lowcore.jiffy_timer)
/**
* out of the sie which costs more cycles than it saves.
*/
} while (!MACHINE_IS_VM && tpi (NULL) != 0);
* out of the sie which costs more cycles than it saves.
*/
} while (!MACHINE_IS_VM && tpi (NULL) != 0);
}
#ifdef CONFIG_CCW_CONSOLE
}
#ifdef CONFIG_CCW_CONSOLE
spinlock_t lock;
unsigned long magic;
spinlock_t lock;
unsigned long magic;
- void (*function)(unsigned long, struct pt_regs*);
+ void (*function)(unsigned long);