Am Montag, 21. Januar 2008 22:43:25 schrieb Sarah Sharp: > + dev->connect_time = jiffies; > + dev->active_duration = -jiffies; > #endif > if (root_hub) /* Root hub always ok [and always wired] */ > dev->authorized = 1; > diff --git a/include/linux/usb.h b/include/linux/usb.h > index 5fc8ff7..b031455 100644 > --- a/include/linux/usb.h > +++ b/include/linux/usb.h > @@ -419,12 +419,15 @@ struct usb_device { > u32 quirks; /* quirks of the whole device */ > atomic_t urbnum; /* number of URBs submitted for the > whole device */ > > + unsigned long active_duration; /* total time device is not suspended > */ > +
Somehow assigning -jiffies to an unsigned variable doesn't appeal to me. Regards Oliver - To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html