WSL2-Linux-Kernel/drivers/dma/ioat
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
..
Makefile ioat3: split ioat3 support to its own file, add memset 2009-09-08 17:42:55 -07:00
dca.c ioat3: dca and raid operations are incompatible 2009-11-19 17:07:10 -07:00
dma.c Driver core: Constify struct sysfs_ops in struct kobj_type 2010-03-07 17:04:49 -08:00
dma.h Driver core: Constify struct sysfs_ops in struct kobj_type 2010-03-07 17:04:49 -08:00
dma_v2.c Merge branch 'coh' into dmaengine 2010-03-03 21:22:21 -07:00
dma_v2.h ioat: cleanup ->timer_fn() and ->cleanup_fn() prototypes 2010-03-03 21:21:13 -07:00
dma_v3.c ioat: cleanup ->timer_fn() and ->cleanup_fn() prototypes 2010-03-03 21:21:13 -07:00
hw.h ioat3: dca and raid operations are incompatible 2009-11-19 17:07:10 -07:00
pci.c dca: registering requesters in multiple dca domains 2009-09-10 10:00:05 -07:00
registers.h ioat3: interrupt coalescing 2010-03-03 21:21:13 -07:00