search for: jiffies_to_msecs

Displaying 14 results from an estimated 14 matches for "jiffies_to_msecs".

2011 Aug 16
1
[PATCH] virtio-blk: Add stats VQ to collect information about devices
...TIO_BLK_S_READ_IO, + part_stat_read(p, ios[READ])); + update_stat(vb, idx++, VIRTIO_BLK_S_READ_MERGES, + part_stat_read(p, merges[READ])); + update_stat(vb, idx++, VIRTIO_BLK_S_READ_SECTORS, + part_stat_read(p, sectors[READ])); + update_stat(vb, idx++, VIRTIO_BLK_S_READ_TICKS, + jiffies_to_msecs(part_stat_read(p, ticks[READ]))); + update_stat(vb, idx++, VIRTIO_BLK_S_WRITE_IO, + part_stat_read(p, ios[WRITE])); + update_stat(vb, idx++, VIRTIO_BLK_S_WRITE_MERGES, + part_stat_read(p, merges[WRITE])); + update_stat(vb, idx++, VIRTIO_BLK_S_WRITE_SECTORS, + part_stat_read(p, sector...
2011 Aug 16
1
[PATCH] virtio-blk: Add stats VQ to collect information about devices
...TIO_BLK_S_READ_IO, + part_stat_read(p, ios[READ])); + update_stat(vb, idx++, VIRTIO_BLK_S_READ_MERGES, + part_stat_read(p, merges[READ])); + update_stat(vb, idx++, VIRTIO_BLK_S_READ_SECTORS, + part_stat_read(p, sectors[READ])); + update_stat(vb, idx++, VIRTIO_BLK_S_READ_TICKS, + jiffies_to_msecs(part_stat_read(p, ticks[READ]))); + update_stat(vb, idx++, VIRTIO_BLK_S_WRITE_IO, + part_stat_read(p, ios[WRITE])); + update_stat(vb, idx++, VIRTIO_BLK_S_WRITE_MERGES, + part_stat_read(p, merges[WRITE])); + update_stat(vb, idx++, VIRTIO_BLK_S_WRITE_SECTORS, + part_stat_read(p, sector...
2014 Jul 23
1
[PATCH 09/17] drm/radeon: use common fence implementation for fences
...@ static bool __radeon_fence_process(struct radeon_device *rdev, int ring) > } > } while (atomic64_xchg(&rdev->fence_drv[ring].last_seq, seq) > seq); > > + if (!wake && last_seq < last_emitted) > + schedule_delayed_work(&rdev->fence_drv[ring].work, jiffies_to_msecs(10)); > + > When trying this: if (seq < last_emitted) is probably a better check. ~Maarten
2014 Jul 23
3
[PATCH 09/17] drm/radeon: use common fence implementation for fences
Am 23.07.2014 12:52, schrieb Daniel Vetter: > On Wed, Jul 23, 2014 at 12:13 PM, Christian K?nig > <christian.koenig at amd.com> wrote: >>> And the dma-buf would still have fences belonging to both drivers, and it >>> would still call from outside the driver. >> >> Calling from outside the driver is fine as long as the driver can do >> everything
2008 Oct 31
0
[PATCH][cfq-cgroups] Interface for parameter of cfq driver data
...+} + +#define SHOW_FUNCTION2(__FUNC, __VAR, __CONV) \ +static ssize_t __FUNC(elevator_t *e, char *page) \ +{ \ + struct cfq_data *cfqd = e->elevator_data; \ + struct cfq_driver_data *cfqdd = cfqd->cfqdd; \ + unsigned int __data = __VAR; \ + if (__CONV) \ + __data = jiffies_to_msecs(__data); \ + return cfq_cgroup_var_show2(__data, (page)); \ +} +SHOW_FUNCTION2(cfq_cgroup_slice_cgroup_show, cfqdd->cfq_cgroup_slice, 1); +#undef SHOW_FUNCTION2 + +#define STORE_FUNCTION2(__FUNC, __PTR, MIN, MAX, __CONV) \ +static ssize_t __FUNC(elevator_t *e, const char *page, size_t count...
2009 Aug 31
1
Garbage ERESTARTSYS in dlmdomain.c?
...iffies(DLM_JOIN_TIMEOUT_MSECS)) { status = -ERESTARTSYS; mlog(ML_NOTICE, "Timed out joining dlm domain " "%s after %u msecs\n", dlm->name, jiffies_to_msecs(total_backoff)); goto bail; } ----------------------------------------------------------------------- Why are we returning -ERESTARTSYS when there isn't a signal pending? This seems like it could totally do something weird, like have entr...
2013 Oct 08
1
OT: errors compiling kernel module as a rpm package
...protocol) = 0xc0b47bb1 kernel(inet_del_protocol) = 0x09ac2202 kernel(inet_get_local_port_range) = 0x475100c2 kernel(inet_proto_csum_replace4) = 0xac63b351 kernel(ip_local_out) = 0xd7c18d8f kernel(ip_route_output_key) = 0x9affb5fe kernel(ipv6_ext_hdr) = 0x8e0b7743 kernel(jiffies) = 0x7d11c268 kernel(jiffies_to_msecs) = 0x37befc70 kernel(kernel_bind) = 0x957e225b kernel(kfree) = 0x037a0cba kernel(kfree_skb) = 0x3d75cbcf kernel(kmem_cache_alloc) = 0xee065ced kernel(kmem_cache_alloc_trace) = 0x2044fa9e kernel(kmem_cache_create) = 0xe4a639f8 kernel(kmem_cache_destroy) = 0x806e575f kernel(kmem_cache_free) = 0x7329e...
2014 Jul 23
0
[PATCH 09/17] drm/radeon: use common fence implementation for fences
...ence.c @@ -231,6 +231,9 @@ static bool __radeon_fence_process(struct radeon_device *rdev, int ring) } } while (atomic64_xchg(&rdev->fence_drv[ring].last_seq, seq) > seq); + if (!wake && last_seq < last_emitted) + schedule_delayed_work(&rdev->fence_drv[ring].work, jiffies_to_msecs(10)); + return wake; } @@ -815,6 +818,14 @@ int radeon_fence_driver_start_ring(struct radeon_device *rdev, int ring) return 0; } +static void radeon_fence_driver_recheck(struct work_struct *work) +{ + struct radeon_fence_driver *drv = container_of(work, struct radeon_fence_driver, work.wo...
2011 Jun 21
13
VM disk I/O limit patch
...lkif->reqmin){ + if(2 == ret && (blkif->reqtime > jiffies)){ + jiffies_to_timeval(jiffies, &cur_time); + if(log_stats && (cur_time.tv_sec % 10 ==1 )) + printk(KERN_DEBUG "%s: going to sleep %d millsecs(rate=%d)\n", + current->comm, + jiffies_to_msecs(blkif->reqtime - jiffies), + blkif->reqrate); + + set_current_state(TASK_INTERRUPTIBLE); + schedule_timeout(blkif->reqtime - jiffies); + + if(log_stats && (cur_time.tv_sec % 10 ==1 )) + printk(KERN_DEBUG "%s: sleep end(rate=%d)\n", + curre...
2011 Jun 21
13
VM disk I/O limit patch
...lkif->reqmin){ + if(2 == ret && (blkif->reqtime > jiffies)){ + jiffies_to_timeval(jiffies, &cur_time); + if(log_stats && (cur_time.tv_sec % 10 ==1 )) + printk(KERN_DEBUG "%s: going to sleep %d millsecs(rate=%d)\n", + current->comm, + jiffies_to_msecs(blkif->reqtime - jiffies), + blkif->reqrate); + + set_current_state(TASK_INTERRUPTIBLE); + schedule_timeout(blkif->reqtime - jiffies); + + if(log_stats && (cur_time.tv_sec % 10 ==1 )) + printk(KERN_DEBUG "%s: sleep end(rate=%d)\n", + curre...
2010 Oct 08
23
O2CB global heartbeat - hopefully final drop!
All, This is hopefully the final drop of the patches for adding global heartbeat to the o2cb stack. The diff from the previous set is here: http://oss.oracle.com/~smushran/global-hb-diff-2010-10-07 Implemented most of the suggestions provided by Joel and Wengang. The most important one was to activate the feature only at the end, Also, got mostly a clean run with checkpatch.pl. Sunil
2008 Nov 12
15
[PATCH][RFC][12+2][v3] A expanded CFQ scheduler for cgroups
This patchset expands traditional CFQ scheduler in order to support cgroups, and improves old version. Improvements are as following. * Modularizing our new CFQ scheduler. The expanded CFQ scheduler is registered/unregistered as new I/O elevator scheduler called "cfq-cgroups". By this, the traditional CFQ scheduler, which does not handle cgroups, and our new CFQ
2008 Nov 12
15
[PATCH][RFC][12+2][v3] A expanded CFQ scheduler for cgroups
This patchset expands traditional CFQ scheduler in order to support cgroups, and improves old version. Improvements are as following. * Modularizing our new CFQ scheduler. The expanded CFQ scheduler is registered/unregistered as new I/O elevator scheduler called "cfq-cgroups". By this, the traditional CFQ scheduler, which does not handle cgroups, and our new CFQ
2007 Jan 02
0
[PATCH 1/4] add scsi-target and IO_CMD_EPOLL_WAIT patches
...cb; ++ timer->expires = expires; ++ } else { ++ timer = (struct timer_list *)iocb->private; ++ expires = timer->expires; ++ } ++ ++ now = jiffies; ++ if (timer->expires == MAX_SCHEDULE_TIMEOUT) ++ relative_ms = EP_MAX_MSTIMEO; ++ else if (time_before(now, expires)) ++ relative_ms = jiffies_to_msecs(expires - now); ++ else ++ relative_ms = 0; ++ ++ iocb->ki_cancel = aio_epoll_cancel; ++ ret = ep_poll(file->private_data, ++ (struct epoll_event __user *)iocb->ki_buf, ++ iocb->ki_nbytes, relative_ms); ++ ++ /* ++ * If a timeout was specified, ep_poll returned retry, a...