/* calculate if there was disk-io in the system  */
static __inline__ int led_get_diskio_activity(void)
/* calculate if there was disk-io in the system  */
static __inline__ int led_get_diskio_activity(void)
{	static unsigned long last_pgpgin, last_pgpgout;
	unsigned long events[NR_VM_EVENT_ITEMS];
	int changed;
	all_vm_events(events);
	changed = (events[PGPGIN] != last_pgpgin) ||
		  (events[PGPGOUT] != last_pgpgout);
	last_pgpgin  = events[PGPGIN];
	last_pgpgout = events[PGPGOUT];
	return (changed ? LED_DISK_IO : 0);
}