~ubuntu-branches/ubuntu/trusty/linux-linaro-omap/trusty

« back to all changes in this revision

Viewing changes to arch/tile/include/asm/cacheflush.h

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-57i0gl3v99b3lkfg
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
}
117
117
 
118
118
 
119
 
/* Invalidate a VA range, then memory fence. */
 
119
/* Invalidate a VA range and wait for it to be complete. */
120
120
static inline void inv_buffer(void *buffer, size_t size)
121
121
{
122
122
        __inv_buffer(buffer, size);
123
 
        mb_incoherent();
 
123
        mb();
124
124
}
125
125
 
126
 
/* Flush a VA range, then memory fence. */
127
 
static inline void flush_buffer(void *buffer, size_t size)
 
126
/*
 
127
 * Flush a locally-homecached VA range and wait for the evicted
 
128
 * cachelines to hit memory.
 
129
 */
 
130
static inline void flush_buffer_local(void *buffer, size_t size)
128
131
{
129
132
        __flush_buffer(buffer, size);
130
133
        mb_incoherent();
131
134
}
132
135
 
133
 
/* Flush & invalidate a VA range, then memory fence. */
134
 
static inline void finv_buffer(void *buffer, size_t size)
 
136
/*
 
137
 * Flush and invalidate a locally-homecached VA range and wait for the
 
138
 * evicted cachelines to hit memory.
 
139
 */
 
140
static inline void finv_buffer_local(void *buffer, size_t size)
135
141
{
136
142
        __finv_buffer(buffer, size);
137
143
        mb_incoherent();