acerhdf.c (e5451c8f8330e03ad3cfa16048b4daf961af434f) | acerhdf.c (0e70f466fb910ae54c4c71243b99385129e93feb) |
---|---|
1/* 2 * acerhdf - A driver which monitors the temperature 3 * of the aspire one netbook, turns on/off the fan 4 * as soon as the upper/lower threshold is reached. 5 * 6 * (C) 2009 - Peter Feuerer peter (a) piie.net 7 * http://piie.net 8 * 2009 Borislav Petkov bp (a) alien8.de --- 391 unchanged lines hidden (view full) --- 400 thz_dev->polling_delay = 0; 401 pr_notice("kernel mode fan control OFF\n"); 402} 403static inline void acerhdf_enable_kernelmode(void) 404{ 405 kernelmode = 1; 406 407 thz_dev->polling_delay = interval*1000; | 1/* 2 * acerhdf - A driver which monitors the temperature 3 * of the aspire one netbook, turns on/off the fan 4 * as soon as the upper/lower threshold is reached. 5 * 6 * (C) 2009 - Peter Feuerer peter (a) piie.net 7 * http://piie.net 8 * 2009 Borislav Petkov bp (a) alien8.de --- 391 unchanged lines hidden (view full) --- 400 thz_dev->polling_delay = 0; 401 pr_notice("kernel mode fan control OFF\n"); 402} 403static inline void acerhdf_enable_kernelmode(void) 404{ 405 kernelmode = 1; 406 407 thz_dev->polling_delay = interval*1000; |
408 thermal_zone_device_update(thz_dev); | 408 thermal_zone_device_update(thz_dev, THERMAL_EVENT_UNSPECIFIED); |
409 pr_notice("kernel mode fan control ON\n"); 410} 411 412static int acerhdf_get_mode(struct thermal_zone_device *thermal, 413 enum thermal_device_mode *mode) 414{ 415 if (verbose) 416 pr_notice("kernel mode fan control %d\n", kernelmode); --- 397 unchanged lines hidden --- | 409 pr_notice("kernel mode fan control ON\n"); 410} 411 412static int acerhdf_get_mode(struct thermal_zone_device *thermal, 413 enum thermal_device_mode *mode) 414{ 415 if (verbose) 416 pr_notice("kernel mode fan control %d\n", kernelmode); --- 397 unchanged lines hidden --- |