Re: [Patch-next] Trival fixes in thermal_throttle_add_dev().

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jean Delvare
Date: Monday, August 30, 2010 - 11:55 pm

Hi Jin

On Tue, 31 Aug 2010 09:55:48 +0900, Jin Dongming wrote:

Even though you are lucky that in the end it still works, this check is
misplaced. You should instead have:

		if (cpu_has(c, X86_FEATURE_PLN)) {
			err = sysfs_add_file_to_group(&sys_dev->kobj,
					&attr_package_power_limit_count.attr,
					thermal_attr_group.name);
			if (err)
				goto error;
		}




-- 
Jean Delvare
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[Patch-next] therm_throt.c: fix missing { and }., Jin Dongming, (Thu Aug 26, 1:29 am)
Re: [Patch-next] therm_throt.c: fix missing { and }., Fenghua Yu, (Thu Aug 26, 1:51 pm)
Re: [Patch-next] Trival fixes in thermal_throttle_add_dev()., Jean Delvare, (Mon Aug 30, 11:55 pm)
[tip:x86/urgent] x86, mce, therm_throt.c: Fix missing curl ..., tip-bot for Jin Dongming, (Fri Oct 8, 3:54 am)