Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219768
b: refs/heads/master
c: f11f4bc
h: refs/heads/master
v: v3
  • Loading branch information
Bernie Thompson authored and Greg Kroah-Hartman committed Sep 5, 2010
1 parent e308c8c commit 65b0a8e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 44 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9825f70f5cf465a8c31236409456d18de07fd166
refs/heads/master: f11f4bc027414bc7db5dde49c55b7149a627b591
37 changes: 0 additions & 37 deletions trunk/drivers/staging/udlfb/udlfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,6 @@ static void dlfb_ops_copyarea(struct fb_info *info,
dlfb_handle_damage(dev, area->dx, area->dy,
area->width, area->height, info->screen_base);
#endif
atomic_inc(&dev->copy_count);

}

Expand All @@ -679,7 +678,6 @@ static void dlfb_ops_imageblit(struct fb_info *info,

#endif

atomic_inc(&dev->blit_count);
}

static void dlfb_ops_fillrect(struct fb_info *info,
Expand All @@ -695,8 +693,6 @@ static void dlfb_ops_fillrect(struct fb_info *info,
rect->height, info->screen_base);
#endif

atomic_inc(&dev->fill_count);

}

static void dlfb_get_edid(struct dlfb_data *dev)
Expand Down Expand Up @@ -754,7 +750,6 @@ static int dlfb_ops_ioctl(struct fb_info *info, unsigned int cmd,

dlfb_handle_damage(dev, area->x, area->y, area->w, area->h,
info->screen_base);
atomic_inc(&dev->damage_count);
}

return 0;
Expand Down Expand Up @@ -1088,29 +1083,6 @@ static ssize_t metrics_cpu_kcycles_used_show(struct device *fbdev,
atomic_read(&dev->cpu_kcycles_used));
}

static ssize_t metrics_misc_show(struct device *fbdev,
struct device_attribute *a, char *buf) {
struct fb_info *fb_info = dev_get_drvdata(fbdev);
struct dlfb_data *dev = fb_info->par;
return snprintf(buf, PAGE_SIZE,
"Calls to\ndamage: %u\nblit: %u\n"
"defio faults: %u\ncopy: %u\n"
"fill: %u\n\n"
"active framebuffer clients: %d\n"
"urbs available %d(%d)\n"
"Shadow framebuffer in use? %s\n"
"Any lost pixels? %s\n",
atomic_read(&dev->damage_count),
atomic_read(&dev->blit_count),
atomic_read(&dev->defio_fault_count),
atomic_read(&dev->copy_count),
atomic_read(&dev->fill_count),
dev->fb_count,
dev->urbs.available, dev->urbs.limit_sem.count,
(dev->backing_buffer) ? "yes" : "no",
atomic_read(&dev->lost_pixels) ? "yes" : "no");
}

static ssize_t edid_show(struct file *filp, struct kobject *kobj,
struct bin_attribute *a,
char *buf, loff_t off, size_t count) {
Expand Down Expand Up @@ -1145,11 +1117,6 @@ static ssize_t metrics_reset_store(struct device *fbdev,
atomic_set(&dev->bytes_identical, 0);
atomic_set(&dev->bytes_sent, 0);
atomic_set(&dev->cpu_kcycles_used, 0);
atomic_set(&dev->blit_count, 0);
atomic_set(&dev->copy_count, 0);
atomic_set(&dev->fill_count, 0);
atomic_set(&dev->defio_fault_count, 0);
atomic_set(&dev->damage_count, 0);

return count;
}
Expand Down Expand Up @@ -1190,7 +1157,6 @@ static struct device_attribute fb_device_attrs[] = {
__ATTR_RO(metrics_bytes_identical),
__ATTR_RO(metrics_bytes_sent),
__ATTR_RO(metrics_cpu_kcycles_used),
__ATTR_RO(metrics_misc),
__ATTR(metrics_reset, S_IWUGO, NULL, metrics_reset_store),
__ATTR_RW(use_defio),
};
Expand All @@ -1208,7 +1174,6 @@ static void dlfb_dpy_deferred_io(struct fb_info *info,
int bytes_sent = 0;
int bytes_identical = 0;
int bytes_rendered = 0;
int fault_count = 0;

if (!atomic_read(&dev->use_defio))
return;
Expand All @@ -1229,7 +1194,6 @@ static void dlfb_dpy_deferred_io(struct fb_info *info,
&cmd, cur->index << PAGE_SHIFT,
PAGE_SIZE, &bytes_identical, &bytes_sent);
bytes_rendered += PAGE_SIZE;
fault_count++;
}

if (cmd > (char *) urb->transfer_buffer) {
Expand All @@ -1240,7 +1204,6 @@ static void dlfb_dpy_deferred_io(struct fb_info *info,
} else
dlfb_urb_completion(urb);

atomic_add(fault_count, &dev->defio_fault_count);
atomic_add(bytes_sent, &dev->bytes_sent);
atomic_add(bytes_identical, &dev->bytes_identical);
atomic_add(bytes_rendered, &dev->bytes_rendered);
Expand Down
6 changes: 0 additions & 6 deletions trunk/drivers/staging/udlfb/udlfb.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,6 @@ struct dlfb_data {
atomic_t bytes_identical; /* saved effort with backbuffer comparison */
atomic_t bytes_sent; /* to usb, after compression including overhead */
atomic_t cpu_kcycles_used; /* transpired during pixel processing */
/* interface usage metrics. Clients can call driver via several */
atomic_t blit_count;
atomic_t copy_count;
atomic_t fill_count;
atomic_t damage_count;
atomic_t defio_fault_count;
};

#define NR_USB_REQUEST_I2C_SUB_IO 0x02
Expand Down

0 comments on commit 65b0a8e

Please sign in to comment.