Emese Revfy 52cf25d0ab Driver core: Constify struct sysfs_ops in struct kobj_type
Constify struct sysfs_ops.

This is part of the ops structure constification
effort started by Arjan van de Ven et al.

Benefits of this constification:

 * prevents modification of data that is shared
   (referenced) by many other structure instances
   at runtime

 * detects/prevents accidental (but not intentional)
   modification attempts on archs that enforce
   read-only kernel data at runtime

 * potentially better optimized code as the compiler
   can assume that the const data cannot be changed

 * the compiler/linker move const data into .rodata
   and therefore exclude them from false sharing

Signed-off-by: Emese Revfy <re.emese@gmail.com>
Acked-by: David Teigland <teigland@redhat.com>
Acked-by: Matt Domsch <Matt_Domsch@dell.com>
Acked-by: Maciej Sosnowski <maciej.sosnowski@intel.com>
Acked-by: Hans J. Koch <hjk@linutronix.de>
Acked-by: Pekka Enberg <penberg@cs.helsinki.fi>
Acked-by: Jens Axboe <jens.axboe@oracle.com>
Acked-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-03-07 17:04:49 -08:00
..
2009-12-16 07:20:02 -08:00
2009-12-16 07:20:02 -08:00
2008-03-10 18:01:20 -07:00
2009-04-01 08:59:31 -07:00
2009-06-16 19:47:59 -07:00
2009-04-01 08:59:32 -07:00
2009-01-12 20:56:32 +01:00
2008-07-24 10:47:34 -07:00
2009-06-16 19:47:58 -07:00
2009-12-16 07:20:04 -08:00
2008-05-18 13:28:49 -07:00
2010-02-22 19:50:34 -08:00
2009-05-06 16:36:10 -07:00
2009-12-07 18:36:35 +01:00
2009-12-15 08:53:25 -08:00
2010-02-27 18:31:16 +01:00
2010-02-27 18:31:14 +01:00
2008-04-28 08:58:41 -07:00
2009-01-06 15:59:27 -08:00
2009-01-06 15:59:27 -08:00
2009-12-04 15:39:52 +01:00
2007-10-16 09:43:22 -07:00
2009-04-01 08:59:31 -07:00
2010-02-27 18:31:13 +01:00
2010-02-27 18:31:13 +01:00
2008-10-16 11:21:42 -07:00
2007-05-08 11:15:32 -07:00