intel_menlow: Add comment documenting legal GTHS values
authorThomas, Sujith <sujith.thomas@intel.com>
Wed, 5 Nov 2008 10:45:13 +0000 (16:15 +0530)
committerLen Brown <len.brown@intel.com>
Fri, 7 Nov 2008 01:24:24 +0000 (20:24 -0500)
Signed-off-by: Sujith Thomas <sujith.thomas@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/misc/intel_menlow.c

index 124b37ddb5c17b335b103548c2f7da4a475b26f3..27b7662955bb1659e60415e5b498d7f86af07179 100644 (file)
@@ -52,6 +52,11 @@ MODULE_LICENSE("GPL");
 #define MEMORY_ARG_CUR_BANDWIDTH 1
 #define MEMORY_ARG_MAX_BANDWIDTH 0
 
+/*
+ * GTHS returning 'n' would mean that [0,n-1] states are supported
+ * In that case max_cstate would be n-1
+ * GTHS returning '0' would mean that no bandwidth control states are supported
+ */
 static int memory_get_int_max_bandwidth(struct thermal_cooling_device *cdev,
                                        unsigned long *max_state)
 {