exynos4210_mct.c (95a9457fd44ad97c518858a4e1586a5498f9773c) | exynos4210_mct.c (b01422622b7c7293196fdaf1dbb4f495af44ecf9) |
---|---|
1/* 2 * Samsung exynos4210 Multi Core timer 3 * 4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. 5 * All rights reserved. 6 * 7 * Evgeny Voevodin <e.voevodin@samsung.com> 8 * --- 1415 unchanged lines hidden (view full) --- 1424{ 1425 int i; 1426 Exynos4210MCTState *s = EXYNOS4210_MCT(obj); 1427 SysBusDevice *dev = SYS_BUS_DEVICE(obj); 1428 QEMUBH *bh[2]; 1429 1430 /* Global timer */ 1431 bh[0] = qemu_bh_new(exynos4210_gfrc_event, s); | 1/* 2 * Samsung exynos4210 Multi Core timer 3 * 4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. 5 * All rights reserved. 6 * 7 * Evgeny Voevodin <e.voevodin@samsung.com> 8 * --- 1415 unchanged lines hidden (view full) --- 1424{ 1425 int i; 1426 Exynos4210MCTState *s = EXYNOS4210_MCT(obj); 1427 SysBusDevice *dev = SYS_BUS_DEVICE(obj); 1428 QEMUBH *bh[2]; 1429 1430 /* Global timer */ 1431 bh[0] = qemu_bh_new(exynos4210_gfrc_event, s); |
1432 s->g_timer.ptimer_frc = ptimer_init(bh[0], PTIMER_POLICY_DEFAULT); | 1432 s->g_timer.ptimer_frc = ptimer_init_with_bh(bh[0], PTIMER_POLICY_DEFAULT); |
1433 memset(&s->g_timer.reg, 0, sizeof(struct gregs)); 1434 1435 /* Local timers */ 1436 for (i = 0; i < 2; i++) { 1437 bh[0] = qemu_bh_new(exynos4210_ltick_event, &s->l_timer[i]); 1438 bh[1] = qemu_bh_new(exynos4210_lfrc_event, &s->l_timer[i]); 1439 s->l_timer[i].tick_timer.ptimer_tick = | 1433 memset(&s->g_timer.reg, 0, sizeof(struct gregs)); 1434 1435 /* Local timers */ 1436 for (i = 0; i < 2; i++) { 1437 bh[0] = qemu_bh_new(exynos4210_ltick_event, &s->l_timer[i]); 1438 bh[1] = qemu_bh_new(exynos4210_lfrc_event, &s->l_timer[i]); 1439 s->l_timer[i].tick_timer.ptimer_tick = |
1440 ptimer_init(bh[0], PTIMER_POLICY_DEFAULT); 1441 s->l_timer[i].ptimer_frc = ptimer_init(bh[1], PTIMER_POLICY_DEFAULT); | 1440 ptimer_init_with_bh(bh[0], PTIMER_POLICY_DEFAULT); 1441 s->l_timer[i].ptimer_frc = 1442 ptimer_init_with_bh(bh[1], PTIMER_POLICY_DEFAULT); |
1442 s->l_timer[i].id = i; 1443 } 1444 1445 /* IRQs */ 1446 for (i = 0; i < MCT_GT_CMP_NUM; i++) { 1447 sysbus_init_irq(dev, &s->g_timer.irq[i]); 1448 } 1449 for (i = 0; i < 2; i++) { --- 30 unchanged lines hidden --- | 1443 s->l_timer[i].id = i; 1444 } 1445 1446 /* IRQs */ 1447 for (i = 0; i < MCT_GT_CMP_NUM; i++) { 1448 sysbus_init_irq(dev, &s->g_timer.irq[i]); 1449 } 1450 for (i = 0; i < 2; i++) { --- 30 unchanged lines hidden --- |